diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-27 10:29:14 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-27 10:29:14 +0000 |
commit | 16b0cdcc2636fea9dbd7b9020ed7e06066521f9c (patch) | |
tree | c6a125becee51029d7dd3f00682f2e3625d7952e /libextra | |
parent | ac0fdb2d0acd63821f8889f8cc2d6833c37cbee7 (diff) | |
download | gnutls-16b0cdcc2636fea9dbd7b9020ed7e06066521f9c.tar.gz |
corrected some bugs that affected openpgp authentication.
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/gnutls_openpgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c index 075b8666e7..a8f5c86c57 100644 --- a/libextra/gnutls_openpgp.c +++ b/libextra/gnutls_openpgp.c @@ -261,10 +261,10 @@ openpgp_pk_to_gnutls_cert( gnutls_cert *cert, cdk_pkt_pubkey_t pk ) if( is_DSA(pk->pubkey_algo) || pk->pubkey_algo == GCRY_PK_RSA_S ) cert->keyUsage = KEY_DIGITAL_SIGNATURE; else if( pk->pubkey_algo == GCRY_PK_RSA_E ) - cert->keyUsage = KEY_ENCIPHER_ONLY; + cert->keyUsage = KEY_KEY_ENCIPHERMENT; else if( pk->pubkey_algo == GCRY_PK_RSA ) cert->keyUsage = KEY_DIGITAL_SIGNATURE - | KEY_ENCIPHER_ONLY; + | KEY_KEY_ENCIPHERMENT; cert->params_size = cdk_pk_get_npkey( pk->pubkey_algo ); for( i = 0; i < cert->params_size; i++ ) { |