diff options
Diffstat (limited to 'lib/algorithms/cert_types.c')
-rw-r--r-- | lib/algorithms/cert_types.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/algorithms/cert_types.c b/lib/algorithms/cert_types.c index dc9fc9a388..6ae4b7e160 100644 --- a/lib/algorithms/cert_types.c +++ b/lib/algorithms/cert_types.c @@ -24,6 +24,7 @@ #include <algorithms.h> #include "errors.h" #include <x509/common.h> +#include "c-strcase.h" /** * gnutls_certificate_type_get_name: @@ -60,11 +61,11 @@ gnutls_certificate_type_t gnutls_certificate_type_get_id(const char *name) { gnutls_certificate_type_t ret = GNUTLS_CRT_UNKNOWN; - if (strcasecmp(name, "X.509") == 0 - || strcasecmp(name, "X509") == 0) + if (c_strcasecmp(name, "X.509") == 0 + || c_strcasecmp(name, "X509") == 0) return GNUTLS_CRT_X509; - if (strcasecmp(name, "RAWPK") == 0 - || strcasecmp(name, "RAWPUBKEY") == 0) + if (c_strcasecmp(name, "RAWPK") == 0 + || c_strcasecmp(name, "RAWPUBKEY") == 0) return GNUTLS_CRT_RAWPK; return ret; |