@@ -274,7 +274,7 @@ static enum leaf_cert_and_privkey_result_t check_leaf_cert_and_privkey(
274
274
}
275
275
276
276
static int cert_set_chain_and_key (
277
- CERT *cert, UniquePtr<STACK_OF(CRYPTO_BUFFER)> * certs, size_t num_certs,
277
+ CERT *cert, UniquePtr<STACK_OF(CRYPTO_BUFFER)> & certs, size_t num_certs,
278
278
EVP_PKEY *privkey, const SSL_PRIVATE_KEY_METHOD *privkey_method) {
279
279
if (num_certs == 0 || (privkey == NULL && privkey_method == NULL )) {
280
280
OPENSSL_PUT_ERROR (SSL, ERR_R_PASSED_NULL_PARAMETER);
@@ -286,7 +286,7 @@ static int cert_set_chain_and_key(
286
286
return 0 ;
287
287
}
288
288
289
- switch (check_leaf_cert_and_privkey (sk_CRYPTO_BUFFER_value (certs-> get (), 0 ), privkey)) {
289
+ switch (check_leaf_cert_and_privkey (sk_CRYPTO_BUFFER_value (certs. get (), 0 ), privkey)) {
290
290
case leaf_cert_and_privkey_error:
291
291
return 0 ;
292
292
case leaf_cert_and_privkey_mismatch:
@@ -314,7 +314,7 @@ static int cert_set_chain_and_key(
314
314
if (cert_pkey->chain ) {
315
315
cert_pkey->chain .reset ();
316
316
}
317
- cert_pkey->chain = std::move (* certs);
317
+ cert_pkey->chain = std::move (certs);
318
318
cert->cert_private_key_idx = idx;
319
319
return 1 ;
320
320
}
@@ -971,7 +971,7 @@ int SSL_set_chain_and_key(SSL *ssl, CRYPTO_BUFFER *const *certs,
971
971
if (!cert_array_to_stack (certs, &crypto_certs, num_certs)) {
972
972
return 0 ;
973
973
}
974
- return cert_set_chain_and_key (ssl->config ->cert .get (), & crypto_certs, num_certs,
974
+ return cert_set_chain_and_key (ssl->config ->cert .get (), crypto_certs, num_certs,
975
975
privkey, privkey_method);
976
976
}
977
977
@@ -982,7 +982,7 @@ int SSL_CTX_set_chain_and_key(SSL_CTX *ctx, CRYPTO_BUFFER *const *certs,
982
982
if (!cert_array_to_stack (certs, &crypto_certs, num_certs)) {
983
983
return 0 ;
984
984
}
985
- return cert_set_chain_and_key (ctx->cert .get (), & crypto_certs, num_certs, privkey,
985
+ return cert_set_chain_and_key (ctx->cert .get (), crypto_certs, num_certs, privkey,
986
986
privkey_method);
987
987
}
988
988
@@ -1047,7 +1047,7 @@ int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,
1047
1047
}
1048
1048
1049
1049
// Call SSL_CTX_set_chain_and_key to set the chain and key
1050
- if (!cert_set_chain_and_key (cert, & leaf_and_chain,
1050
+ if (!cert_set_chain_and_key (cert, leaf_and_chain,
1051
1051
sk_CRYPTO_BUFFER_num (leaf_and_chain.get ()),
1052
1052
privatekey, nullptr )) {
1053
1053
return 0 ;
0 commit comments