diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | lib/x509/extensions.c | 8 |
3 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -Version 1.0.3 +Version 1.0.3 (21/12/2003) - Corrected bug in gnutls_bye() which made it return an error code of INVALID_REQUEST instead of success. - Corrected a bug in the GNUTLS_KEY key usage definitions. diff --git a/configure.in b/configure.in index 78e8cf546d..2565029e15 100644 --- a/configure.in +++ b/configure.in @@ -12,7 +12,7 @@ AC_DEFINE_UNQUOTED(T_OS, "$target_os", [OS name]) dnl Gnutls Version GNUTLS_MAJOR_VERSION=1 GNUTLS_MINOR_VERSION=0 -GNUTLS_MICRO_VERSION=2 +GNUTLS_MICRO_VERSION=3 GNUTLS_VERSION=$GNUTLS_MAJOR_VERSION.$GNUTLS_MINOR_VERSION.$GNUTLS_MICRO_VERSION AC_DEFINE_UNQUOTED(GNUTLS_VERSION, "$GNUTLS_VERSION", [version of gnutls]) diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c index fa52d929cf..c88a69c250 100644 --- a/lib/x509/extensions.c +++ b/lib/x509/extensions.c @@ -339,10 +339,10 @@ int _gnutls_x509_ext_extract_keyUsage(uint16 *keyUsage, opaque * extnValue, int extnValueLen) { ASN1_TYPE ext = ASN1_TYPE_EMPTY; - char str[10]; + uint8 str[2]; int len, result; - keyUsage[0] = 0; + *keyUsage = 0; if ((result=asn1_create_element (_gnutls_get_pkix(), "PKIX1.KeyUsage", &ext @@ -359,7 +359,7 @@ int _gnutls_x509_ext_extract_keyUsage(uint16 *keyUsage, opaque * extnValue, return 0; } - len = sizeof(str) - 1; + len = sizeof(str); result = asn1_read_value(ext, "", str, &len); if (result != ASN1_SUCCESS) { gnutls_assert(); @@ -367,7 +367,7 @@ int _gnutls_x509_ext_extract_keyUsage(uint16 *keyUsage, opaque * extnValue, return 0; } - keyUsage[0] = str[0]; + *keyUsage = str[0] | (str[1] << 8); asn1_delete_structure(&ext); |