Skip to content

Commit 86982db

Browse files
committed
Merge branch 'lbfix' of github.com:fwsGonzo/IncludeOS into v0.13.x
2 parents 6ce443c + c63ed14 commit 86982db

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/net/openssl/client.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tls_load_from_memory(X509_STORE* store,
3030
auto* cert = PEM_read_bio_X509(cbio, NULL, 0, NULL);
3131
assert(cert != NULL && "Invalid certificate");
3232
int res = X509_STORE_add_cert(store, cert);
33-
assert(res == 1);
33+
assert(res == 1 && "The X509 store did not accept the certificate");
3434
BIO_free(cbio);
3535
}
3636

@@ -44,7 +44,8 @@ tls_private_key_for_ctx(SSL_CTX* ctx, int bits = 2048)
4444
int ret = RSA_generate_key_ex(rsa, bits, bne, NULL);
4545
assert(ret == 1);
4646

47-
SSL_CTX_use_RSAPrivateKey(ctx, rsa);
47+
ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa);
48+
assert(ret == 1 && "OpenSSL context did not accept the private key");
4849
}
4950

5051
static SSL_CTX*

0 commit comments

Comments
 (0)