Line 0
Link Here
|
|
|
1 |
--- deps/neverbleed/neverbleed.c.orig 2019-12-25 14:31:51 UTC |
2 |
+++ deps/neverbleed/neverbleed.c |
3 |
@@ -631,8 +631,11 @@ static int sign_stub(struct expbuf_t *buf) |
4 |
} |
5 |
|
6 |
#if !OPENSSL_1_1_API |
7 |
- |
8 |
+#if defined(LIBRESSL_VERSION_NUMBER) |
9 |
+void RSA_get0_key(const RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) |
10 |
+#else |
11 |
static void RSA_get0_key(const RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) |
12 |
+#endif |
13 |
{ |
14 |
if (n) { |
15 |
*n = rsa->n; |
16 |
@@ -647,7 +650,11 @@ static void RSA_get0_key(const RSA *rsa, const BIGNUM |
17 |
} |
18 |
} |
19 |
|
20 |
+#if defined(LIBRESSL_VERSION_NUMBER) |
21 |
+int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d) |
22 |
+#else |
23 |
static int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d) |
24 |
+#endif |
25 |
{ |
26 |
if (n == NULL || e == NULL) { |
27 |
return 0; |
28 |
@@ -663,7 +670,11 @@ static int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e |
29 |
return 1; |
30 |
} |
31 |
|
32 |
+#if defined(LIBRESSL_VERSION_NUMBER) |
33 |
+void RSA_set_flags(RSA *r, int flags) |
34 |
+#else |
35 |
static void RSA_set_flags(RSA *r, int flags) |
36 |
+#endif |
37 |
{ |
38 |
r->flags |= flags; |
39 |
} |