Lines Matching defs:ssl

51 #include "url.h" /* for the ssl config check function */
67 #include <openssl/ssl.h>
417 CURLcode Curl_ossl_certchain(struct Curl_easy *data, SSL *ssl)
425 DEBUGASSERT(ssl);
427 sk = SSL_get_peer_cert_chain(ssl);
842 static void ossl_keylog_callback(const SSL *ssl, const char *line)
844 (void)ssl;
854 ossl_log_tls12_secret(const SSL *ssl, bool *keylog_done)
856 const SSL_SESSION *session = SSL_get_session(ssl);
867 /* ssl->s3 is not checked in openssl 1.1.0-pre6, but let's assume that
869 SSL_get_client_random(ssl, client_random, SSL3_RANDOM_SIZE);
873 if(ssl->s3 && session->master_key_length > 0) {
876 memcpy(client_random, ssl->s3->client_random, SSL3_RANDOM_SIZE);
1284 SSL *ssl;
1361 failf(data, "ssl engine does not support loading certificates");
1368 failf(data, "ssl engine cannot load client cert with id"
1376 failf(data, "ssl engine didn't initialized the certificate "
1602 ssl = SSL_new(ctx);
1603 if(!ssl) {
1608 x509 = SSL_get_certificate(ssl);
1614 EVP_PKEY_copy_parameters(pktmp, SSL_get_privatekey(ssl));
1623 EVP_PKEY *priv_key = SSL_get_privatekey(ssl);
1639 SSL_free(ssl);
2009 /* openssl/ssl.h says "look at error stack/return value/errno" */
2611 const void *buf, size_t len, SSL *ssl,
2715 (void) ssl;
2907 static int ossl_new_session_cb(SSL *ssl, SSL_SESSION *ssl_sessionid)
2916 cf = (struct Curl_cfilter*) SSL_get_app_data(ssl);
2953 failf(data, "failed to store ssl session");
3748 if(data->set.ssl.fsslctx) {
3759 result = (*data->set.ssl.fsslctx)(data, backend->ctx,
3760 data->set.ssl.fsslctxp);
3763 failf(data, "error signaled by ssl ctx callback");
4094 static void infof_certstack(struct Curl_easy *data, const SSL *ssl)
4101 verify_result = SSL_get_verify_result(ssl);
4103 certstack = SSL_get_peer_cert_chain(ssl);
4105 certstack = SSL_get0_verified_chain(ssl);
4154 #define infof_certstack(data, ssl)
4196 if(data->set.ssl.certinfo)
4465 /* if ssl is expecting something, check if it's available. */
4693 /* openssl/ssl.h for SSL_ERROR_SYSCALL says "look at error stack/return