summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_pkey_to.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-01 11:27:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-01 11:27:05 +0000
commita84b9b4e5d985a5d8a37268a76e1d35210fd31c5 (patch)
tree64cf1b6e3f21e1ac96ea119358fda95091ee6e93 /src/sbearssl/sbearssl_pkey_to.c
parente763c3ef1485404585b923365f93314aab4e8dd6 (diff)
downloads6-networking-a84b9b4e5d985a5d8a37268a76e1d35210fd31c5.tar.xz
Add all the missing pieces for sni_policy
sbearssl_server_init_and_run is yet unchanged, the next step is to rewrite it using the new primitives.
Diffstat (limited to 'src/sbearssl/sbearssl_pkey_to.c')
-rw-r--r--src/sbearssl/sbearssl_pkey_to.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_pkey_to.c b/src/sbearssl/sbearssl_pkey_to.c
index 54570aa..158280a 100644
--- a/src/sbearssl/sbearssl_pkey_to.c
+++ b/src/sbearssl/sbearssl_pkey_to.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_to (sbearssl_pkey const *l, br_x509_pkey *k, char *s)
sbearssl_ec_pkey_to(&l->data.ec, &k->key.ec, s) ;
break ;
default :
- return (errno = EINVAL, 0) ;
+ return 0 ;
}
k->key_type = l->type ;
return 1 ;