summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_pkey_from.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbearssl/sbearssl_pkey_from.c')
-rw-r--r--src/sbearssl/sbearssl_pkey_from.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_pkey_from.c b/src/sbearssl/sbearssl_pkey_from.c
index c7bc707..e60907e 100644
--- a/src/sbearssl/sbearssl_pkey_from.c
+++ b/src/sbearssl/sbearssl_pkey_from.c
@@ -1,6 +1,5 @@
/* ISC license. */
-#include <errno.h>
#include <bearssl.h>
#include <s6-networking/sbearssl.h>
@@ -15,7 +14,7 @@ int sbearssl_pkey_from (sbearssl_pkey *l, br_x509_pkey const *k, stralloc *sa)
if (!sbearssl_ec_pkey_from(&l->data.ec, &k->key.ec, sa)) return 0 ;
break ;
default :
- return (errno = EINVAL, 0) ;
+ return 0 ;
}
l->type = k->key_type ;
return 1 ;