commit c3a8147
default
·
2026-03-17 19:35:58 +0000 UTC
parent 5af9d81
Fixed compilation error in OpenBSD.
1 files changed,
+2,
-2
+2,
-2
1@@ -122,12 +122,12 @@ xs_dict *xs_evp_genkey(int bits)
2 EVP_PKEY *pkey = NULL;
3
4 if ((ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL)) == NULL)
5- goto end;
6+ return NULL;
7
8 if (EVP_PKEY_keygen_init(ctx) <= 0 ||
9 EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) <= 0 ||
10 EVP_PKEY_keygen(ctx, &pkey) <= 0)
11- goto end;
12+ return NULL;
13
14 BIO *bs = BIO_new(BIO_s_mem());
15 BIO *bp = BIO_new(BIO_s_mem());