Lines Matching refs:sc

724 static int ssl_print_signature(BIO *bio, int indent, const SSL_CONNECTION *sc,  in ssl_print_signature()  argument
729 if (SSL_USE_SIGALGS(sc)) { in ssl_print_signature()
1006 static int ssl_print_client_hello(BIO *bio, const SSL_CONNECTION *sc, int indent, in ssl_print_client_hello() argument
1018 if (SSL_CONNECTION_IS_DTLS(sc)) { in ssl_print_client_hello()
1109 static int ssl_get_keyex(const char **pname, const SSL_CONNECTION *sc) in ssl_get_keyex() argument
1111 unsigned long alg_k = sc->s3.tmp.new_cipher->algorithm_mkey; in ssl_get_keyex()
1157 static int ssl_print_client_keyex(BIO *bio, int indent, const SSL_CONNECTION *sc, in ssl_print_client_keyex() argument
1161 int id = ssl_get_keyex(&algname, sc); in ssl_print_client_keyex()
1174 if (TLS1_get_version(SSL_CONNECTION_GET_SSL(sc)) == SSL3_VERSION) { in ssl_print_client_keyex()
1209 static int ssl_print_server_keyex(BIO *bio, int indent, const SSL_CONNECTION *sc, in ssl_print_server_keyex() argument
1213 int id = ssl_get_keyex(&algname, sc); in ssl_print_server_keyex()
1273 ssl_print_signature(bio, indent, sc, &msg, &msglen); in ssl_print_server_keyex()
1277 static int ssl_print_certificate(BIO *bio, const SSL_CONNECTION *sc, int indent, in ssl_print_certificate() argument
1284 SSL_CTX *ctx = SSL_CONNECTION_GET_CTX(sc); in ssl_print_certificate()
1347 static int ssl_print_certificates(BIO *bio, const SSL_CONNECTION *sc, int server, in ssl_print_certificates() argument
1353 if (SSL_CONNECTION_IS_TLS13(sc) in ssl_print_certificates()
1363 if ((server && sc->ext.server_cert_type == TLSEXT_cert_type_rpk) in ssl_print_certificates()
1364 || (!server && sc->ext.client_cert_type == TLSEXT_cert_type_rpk)) { in ssl_print_certificates()
1365 if (!ssl_print_raw_public_key(bio, &sc->ssl, server, indent, &msg, &clen)) in ssl_print_certificates()
1367 if (SSL_CONNECTION_IS_TLS13(sc) in ssl_print_certificates()
1376 if (!ssl_print_certificate(bio, sc, indent + 2, &msg, &clen)) in ssl_print_certificates()
1378 if (SSL_CONNECTION_IS_TLS13(sc) in ssl_print_certificates()
1387 static int ssl_print_compressed_certificates(BIO *bio, const SSL_CONNECTION *sc, in ssl_print_compressed_certificates() argument
1450 ret = ssl_print_certificates(bio, sc, server, indent, ucdata, uclen); in ssl_print_compressed_certificates()
1458 static int ssl_print_cert_request(BIO *bio, int indent, const SSL_CONNECTION *sc, in ssl_print_cert_request() argument
1464 if (SSL_CONNECTION_IS_TLS13(sc)) { in ssl_print_cert_request()
1485 if (SSL_USE_SIGALGS(sc)) { in ssl_print_cert_request()
1539 if (SSL_CONNECTION_IS_TLS13(sc)) { in ssl_print_cert_request()
1547 static int ssl_print_ticket(BIO *bio, int indent, const SSL_CONNECTION *sc, in ssl_print_ticket() argument
1567 if (SSL_CONNECTION_IS_TLS13(sc)) { in ssl_print_ticket()
1587 if (SSL_CONNECTION_IS_TLS13(sc) in ssl_print_ticket()
1596 static int ssl_print_handshake(BIO *bio, const SSL_CONNECTION *sc, int server, in ssl_print_handshake() argument
1612 if (SSL_CONNECTION_IS_DTLS(sc)) { in ssl_print_handshake()
1628 if (!ssl_print_client_hello(bio, sc, indent + 2, msg, msglen)) in ssl_print_handshake()
1643 if (!ssl_print_server_keyex(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1648 if (!ssl_print_client_keyex(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1653 if (!ssl_print_certificates(bio, sc, server, indent + 2, msg, msglen)) in ssl_print_handshake()
1658 if (!ssl_print_compressed_certificates(bio, sc, server, indent + 2, msg, msglen)) in ssl_print_handshake()
1663 if (!ssl_print_signature(bio, indent + 2, sc, &msg, &msglen)) in ssl_print_handshake()
1668 if (!ssl_print_cert_request(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1683 if (!ssl_print_ticket(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1716 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_trace() local
1731 if (sc == NULL) in SSL_trace()
1740 if (msglen < (size_t)(SSL_CONNECTION_IS_DTLS(sc) ? in SSL_trace()
1750 if (SSL_CONNECTION_IS_DTLS(sc)) { in SSL_trace()
1770 if (!ssl_print_handshake(bio, sc, sc->server ? write_p : !write_p, in SSL_trace()