Lines Matching refs:cpk
194 static size_t ssl_get_cert_to_compress(SSL *ssl, CERT_PKEY *cpk, unsigned char **data) in ssl_get_cert_to_compress() argument
202 || cpk == NULL in ssl_get_cert_to_compress()
219 if (!ssl3_output_cert_chain(sc, &tmppkt, cpk, 1)) in ssl_get_cert_to_compress()
232 static int ssl_compress_one_cert(SSL *ssl, CERT_PKEY *cpk, int alg) in ssl_compress_one_cert() argument
238 if (cpk == NULL in ssl_compress_one_cert()
243 if ((length = ssl_get_cert_to_compress(ssl, cpk, &cert_data)) == 0) in ssl_compress_one_cert()
250 OSSL_COMP_CERT_free(cpk->comp_cert[alg]); in ssl_compress_one_cert()
251 cpk->comp_cert[alg] = comp_cert; in ssl_compress_one_cert()
300 static size_t ssl_get_compressed_cert(SSL *ssl, CERT_PKEY *cpk, int alg, unsigned char **data, in ssl_get_compressed_cert() argument
310 || cpk == NULL in ssl_get_compressed_cert()
318 if ((cert_len = ssl_get_cert_to_compress(ssl, cpk, &cert_data)) == 0) in ssl_get_compressed_cert()
414 CERT_PKEY *cpk = NULL; in SSL_get1_compressed_cert() local
417 cpk = sc->cert->key; in SSL_get1_compressed_cert()
419 cpk = ssl->ctx->cert->key; in SSL_get1_compressed_cert()
421 return ssl_get_compressed_cert(ssl, cpk, alg, data, orig_len); in SSL_get1_compressed_cert()