summaryrefslogtreecommitdiff
path: root/lib/gnutls_pubkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 18:50:20 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 18:50:20 +0100
commitc6bf6e1da1f70adfa2a91a36143f74e6234fe7ea (patch)
treed186f18893fc58cfbe243480921d877b0973915c /lib/gnutls_pubkey.c
parentbdde81f6b1d8b4f12c887b440aad646a0e03c63b (diff)
downloadgnutls-c6bf6e1da1f70adfa2a91a36143f74e6234fe7ea.tar.gz
The library state is used even when not in FIPS mode.
This allows having an error state that blocks the library usage even when not in FIPS mode.
Diffstat (limited to 'lib/gnutls_pubkey.c')
-rw-r--r--lib/gnutls_pubkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c
index 21826b866d..36360b1d15 100644
--- a/lib/gnutls_pubkey.c
+++ b/lib/gnutls_pubkey.c
@@ -111,7 +111,7 @@ int gnutls_pubkey_get_key_usage(gnutls_pubkey_t key, unsigned int *usage)
**/
int gnutls_pubkey_init(gnutls_pubkey_t * key)
{
- FAIL_IF_FIPS_ERROR;
+ FAIL_IF_LIB_ERROR;
*key = gnutls_calloc(1, sizeof(struct gnutls_pubkey_st));
if (*key == NULL) {