summaryrefslogtreecommitdiff
path: root/lib/algorithms
diff options
context:
space:
mode:
authorTom Vrancken <email@tomvrancken.nl>2017-08-26 14:22:44 +0200
committerTom Vrancken <dev@tomvrancken.nl>2018-12-15 19:05:03 +0100
commit565efaeac828e89d2c1bac7a88c27303d1b62547 (patch)
tree5cc0e7c43c4933b743d2ba5889bad13f86e98323 /lib/algorithms
parent71276d301a602926e44df818259ba1d99264a179 (diff)
downloadgnutls-565efaeac828e89d2c1bac7a88c27303d1b62547.tar.gz
Implemented support for raw public-key functionality (RFC7250).
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Diffstat (limited to 'lib/algorithms')
-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
};