Skip to content

Commit

Permalink
Fix BER encoding of hash in sign_dummy_data()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 14, 2012
1 parent 25d9be5 commit 456de5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnutls.c
Expand Up @@ -721,6 +721,7 @@ static int sign_dummy_data(struct openconnect_info *vpninfo, gnutls_privkey_t pk
0x06, 0x05, /* OBJECT_ID, length 5 */
0x2b, 0x0e, 0x03, 0x02, 0x1a, /* SHA1: 1.3.14.3.2.26 */
0x05, 0x00, /* NULL (parameters) */
0x04, 0x14, /* OCTET_STRING, length 20 */
/* followed by the 20-byte sha1 */
};
gnutls_datum_t hash;
Expand Down

0 comments on commit 456de5f

Please sign in to comment.