projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25d9be5
)
Fix BER encoding of hash in sign_dummy_data()
author
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 14 Jun 2012 21:10:16 +0000
(22:10 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 14 Jun 2012 21:10:16 +0000
(22:10 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
gnutls.c
patch
|
blob
|
history
diff --git
a/gnutls.c
b/gnutls.c
index
e6ae5df
..
7e3ab08
100644
(file)
--- a/
gnutls.c
+++ b/
gnutls.c
@@
-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;