summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_ec_skey_to.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbearssl/sbearssl_ec_skey_to.c')
-rw-r--r--src/sbearssl/sbearssl_ec_skey_to.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_ec_skey_to.c b/src/sbearssl/sbearssl_ec_skey_to.c
index 54b059c..7cba7ba 100644
--- a/src/sbearssl/sbearssl_ec_skey_to.c
+++ b/src/sbearssl/sbearssl_ec_skey_to.c
@@ -3,9 +3,9 @@
#include <bearssl.h>
#include <s6-networking/sbearssl.h>
-void sbearssl_ec_skey_to (sbearssl_ec_skey const *l, br_ec_private_key *k, char const *s)
+void sbearssl_ec_skey_to (sbearssl_ec_skey const *l, br_ec_private_key *k, char *s)
{
k->curve = l->curve ;
- k->x = s + l->x ;
+ k->x = (unsigned char *)s + l->x ;
k->xlen = l->xlen ;
}