Version 1.0.3
- 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.
Version 1.0.2 (18/12/2003)
- Corrected a bug in the RSA key generation. This was
/* key_usage will be an OR of the following values:
*/
-#define GNUTLS_KEY_DIGITAL_SIGNATURE 256
-#define GNUTLS_KEY_NON_REPUDIATION 128
-#define GNUTLS_KEY_KEY_ENCIPHERMENT 64
-#define GNUTLS_KEY_DATA_ENCIPHERMENT 32
-#define GNUTLS_KEY_KEY_AGREEMENT 16
-#define GNUTLS_KEY_KEY_CERT_SIGN 8
-#define GNUTLS_KEY_CRL_SIGN 4
-#define GNUTLS_KEY_ENCIPHER_ONLY 2
-#define GNUTLS_KEY_DECIPHER_ONLY 1
+#define GNUTLS_KEY_DIGITAL_SIGNATURE 128 /* when the key is to be
+ * used for signing.
+ */
+#define GNUTLS_KEY_NON_REPUDIATION 64
+#define GNUTLS_KEY_KEY_ENCIPHERMENT 32 /* when the key is to be
+ * used for encryption.
+ */
+#define GNUTLS_KEY_DATA_ENCIPHERMENT 16
+#define GNUTLS_KEY_KEY_AGREEMENT 8
+#define GNUTLS_KEY_KEY_CERT_SIGN 4
+#define GNUTLS_KEY_CRL_SIGN 2
+#define GNUTLS_KEY_ENCIPHER_ONLY 1
+#define GNUTLS_KEY_DECIPHER_ONLY 256
int gnutls_x509_crt_get_extension_oid(gnutls_x509_crt cert, int indx,
void* oid, size_t * sizeof_oid);
/* For key Usage, test as:
* if (st.keyUsage & KEY_DIGITAL_SIGNATURE) ...
*/
-#define KEY_DIGITAL_SIGNATURE 256
-#define KEY_NON_REPUDIATION 128
-#define KEY_KEY_ENCIPHERMENT 64
-#define KEY_DATA_ENCIPHERMENT 32
-#define KEY_KEY_AGREEMENT 16
-#define KEY_KEY_CERT_SIGN 8
-#define KEY_CRL_SIGN 4
-#define KEY_ENCIPHER_ONLY 2
-#define KEY_DECIPHER_ONLY 1
+#define KEY_DIGITAL_SIGNATURE 128
+#define KEY_NON_REPUDIATION 64
+#define KEY_KEY_ENCIPHERMENT 32
+#define KEY_DATA_ENCIPHERMENT 16
+#define KEY_KEY_AGREEMENT 8
+#define KEY_KEY_CERT_SIGN 4
+#define KEY_CRL_SIGN 2
+#define KEY_ENCIPHER_ONLY 1
+#define KEY_DECIPHER_ONLY 256
typedef struct gnutls_cert {
GNUTLS_MPI params[MAX_PUBLIC_PARAMS_SIZE]; /* the size of params depends on the public