]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_pkcs11_privkey_get_pubkey: return GNUTLS_E_INVALID_REQUEST on invalid params
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 6 Aug 2014 13:12:32 +0000 (15:12 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 6 Aug 2014 13:12:32 +0000 (15:12 +0200)
lib/pkcs11_privkey.c

index 44ebb6a5a41d4cc9233ed2e08c72c91abd52c428..14471ad32e971b2c2c973288a97491a160f8fdef 100644 (file)
@@ -920,7 +920,7 @@ gnutls_pkcs11_privkey_get_pubkey (const char* url,
 
        if (!pubkey) {
                gnutls_assert();
-               return GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER;
+               return GNUTLS_E_INVALID_REQUEST;
        }
 
        /* extract the public key */