diff options
| author | 2026-03-17 20:35:58 +0100 | |
|---|---|---|
| committer | 2026-03-17 20:35:58 +0100 | |
| commit | c3a81479c8dffeb42e84c691417be50d678bf5df (patch) | |
| tree | 3d920d55d58e9931da3ba291bdc8550fbc55d72e | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-c3a81479c8dffeb42e84c691417be50d678bf5df.tar.gz snac2-c3a81479c8dffeb42e84c691417be50d678bf5df.tar.xz snac2-c3a81479c8dffeb42e84c691417be50d678bf5df.zip | |
Fixed compilation error in OpenBSD.
| -rw-r--r-- | xs_openssl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_openssl.h b/xs_openssl.h index 4bc14d2..9ff5726 100644 --- a/xs_openssl.h +++ b/xs_openssl.h | |||
| @@ -122,12 +122,12 @@ xs_dict *xs_evp_genkey(int bits) | |||
| 122 | EVP_PKEY *pkey = NULL; | 122 | EVP_PKEY *pkey = NULL; |
| 123 | 123 | ||
| 124 | if ((ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL)) == NULL) | 124 | if ((ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL)) == NULL) |
| 125 | goto end; | 125 | return NULL; |
| 126 | 126 | ||
| 127 | if (EVP_PKEY_keygen_init(ctx) <= 0 || | 127 | if (EVP_PKEY_keygen_init(ctx) <= 0 || |
| 128 | EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) <= 0 || | 128 | EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) <= 0 || |
| 129 | EVP_PKEY_keygen(ctx, &pkey) <= 0) | 129 | EVP_PKEY_keygen(ctx, &pkey) <= 0) |
| 130 | goto end; | 130 | return NULL; |
| 131 | 131 | ||
| 132 | BIO *bs = BIO_new(BIO_s_mem()); | 132 | BIO *bs = BIO_new(BIO_s_mem()); |
| 133 | BIO *bp = BIO_new(BIO_s_mem()); | 133 | BIO *bp = BIO_new(BIO_s_mem()); |