From 066f962e49fe887363117deae1f7d8d0faebf1b6 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Tue, 24 Sep 2024 10:13:39 +0000 Subject: [PATCH] Fix build failure Signed-off-by: Songling Han --- oqsprov/oqsprov_keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oqsprov/oqsprov_keys.c b/oqsprov/oqsprov_keys.c index 083bfd83..ec61da05 100644 --- a/oqsprov/oqsprov_keys.c +++ b/oqsprov/oqsprov_keys.c @@ -230,7 +230,7 @@ static int get_keytype(int nid) { return 0; } -char *get_oqsname_fromtls(const char *tlsname) { +const char *get_oqsname_fromtls(const char *tlsname) { int i; if (tlsname == NULL) { return NULL; @@ -466,7 +466,7 @@ EVP_PKEY *setECParams(EVP_PKEY *eck, int nid) { return NULL; } - result = d2i_KeyParams(EVP_PKEY_EC, &eck, ¶ms, params_len); + result = d2i_KeyParams(EVP_PKEY_EC, &eck, ¶ms, params_len); if (result == NULL) { EVP_PKEY_free(eck); }