diff options
author | Daiki Ueno <ueno@unixuser.org> | 2009-08-31 14:48:12 +0900 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-08-31 15:00:30 +0200 |
commit | e0eda60777d2dca22601d12b0703026a914f08e7 (patch) | |
tree | b006ce60776b6646ce2b8c574782cdd0f56a536f | |
parent | bd77fdf5cc2cac89e1aab557db52669edfa5126d (diff) | |
download | gnutls-e0eda60777d2dca22601d12b0703026a914f08e7.tar.gz |
Fix parsing Certificate Request for TLS 1.2.
Fix the logic to skip supported_signature_algorithms in Certificate
Request.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
-rw-r--r-- | lib/auth_cert.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/auth_cert.c b/lib/auth_cert.c index 5b8c163bda..3afc0fe138 100644 --- a/lib/auth_cert.c +++ b/lib/auth_cert.c @@ -1353,10 +1353,9 @@ _gnutls_proc_cert_cert_req (gnutls_session_t session, opaque * data, { /* read supported hashes */ int hash_num; - DECR_LEN (dsize, 1); - - hash_num = p[0] & 0xFF; - p++; + DECR_LEN (dsize, 2); + hash_num = _gnutls_read_uint16 (p); + p += 2; DECR_LEN (dsize, hash_num); p += hash_num; |