diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-24 11:21:34 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-03 11:57:52 +0200 |
commit | cec9ca4fc733a93a8eead4377d1e5ae83da1c48b (patch) | |
tree | 6041f50838c413ed953e32a62c96ab834042dcb5 /lib/pkcs11_write.c | |
parent | 99d5d8ae0eda8bbcfe118b1df987aea8ef142cf4 (diff) | |
download | gnutls-cec9ca4fc733a93a8eead4377d1e5ae83da1c48b.tar.gz |
pkcs11: added support for signatures with RSA-PSS
Relates #209
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pkcs11_write.c')
-rw-r--r-- | lib/pkcs11_write.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c index c8da7c094e..c58d6e7617 100644 --- a/lib/pkcs11_write.c +++ b/lib/pkcs11_write.c @@ -280,6 +280,7 @@ static int add_pubkey(gnutls_pubkey_t pubkey, struct ck_attribute *a, unsigned * pk = gnutls_pubkey_get_pk_algorithm(pubkey, NULL); switch (pk) { + case GNUTLS_PK_RSA_PSS: case GNUTLS_PK_RSA: { gnutls_datum_t m, e; @@ -795,6 +796,7 @@ gnutls_pkcs11_copy_x509_privkey2(const char *token_url, switch (pk) { case GNUTLS_PK_RSA: + case GNUTLS_PK_RSA_PSS: { ret = _gnutls_params_get_rsa_raw(&key->params, &m, &e, &d, &p, @@ -937,6 +939,7 @@ gnutls_pkcs11_copy_x509_privkey2(const char *token_url, cleanup: switch (pk) { + case GNUTLS_PK_RSA_PSS: case GNUTLS_PK_RSA: { gnutls_free(m.data); |