summaryrefslogtreecommitdiff
path: root/libextra/gnutls_openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libextra/gnutls_openpgp.c')
-rw-r--r--libextra/gnutls_openpgp.c4
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++ ) {