summaryrefslogtreecommitdiff
path: root/lib/algorithms/cert_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithms/cert_types.c')
-rw-r--r--lib/algorithms/cert_types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/algorithms/cert_types.c b/lib/algorithms/cert_types.c
index 6ae4b7e160..9671e508d9 100644
--- a/lib/algorithms/cert_types.c
+++ b/lib/algorithms/cert_types.c
@@ -64,8 +64,7 @@ gnutls_certificate_type_t gnutls_certificate_type_get_id(const char *name)
if (c_strcasecmp(name, "X.509") == 0
|| c_strcasecmp(name, "X509") == 0)
return GNUTLS_CRT_X509;
- if (c_strcasecmp(name, "RAWPK") == 0
- || c_strcasecmp(name, "RAWPUBKEY") == 0)
+ if (c_strcasecmp(name, "RAWPK") == 0)
return GNUTLS_CRT_RAWPK;
return ret;
@@ -73,6 +72,7 @@ gnutls_certificate_type_t gnutls_certificate_type_get_id(const char *name)
static const gnutls_certificate_type_t supported_certificate_types[] = {
GNUTLS_CRT_X509,
+ GNUTLS_CRT_RAWPK,
0
};