summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_ec_pkey_to.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbearssl/sbearssl_ec_pkey_to.c')
-rw-r--r--src/sbearssl/sbearssl_ec_pkey_to.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_ec_pkey_to.c b/src/sbearssl/sbearssl_ec_pkey_to.c
index 4cc1e65..df3d799 100644
--- a/src/sbearssl/sbearssl_ec_pkey_to.c
+++ b/src/sbearssl/sbearssl_ec_pkey_to.c
@@ -3,9 +3,9 @@
#include <bearssl.h>
#include <s6-networking/sbearssl.h>
-void sbearssl_ec_pkey_to (sbearssl_ec_pkey const *l, br_ec_public_key *k, char const *s)
+void sbearssl_ec_pkey_to (sbearssl_ec_pkey const *l, br_ec_public_key *k, char *s)
{
k->curve = l->curve ;
- k->q = s + l->q ;
+ k->q = (unsigned char *)s + l->q ;
k->qlen = l->qlen ;
}