Lines Matching refs:sc

34     SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl);  in SSL_use_certificate()  local
36 if (sc == NULL) in SSL_use_certificate()
44 rv = ssl_security_cert(sc, NULL, x, 0, 1); in SSL_use_certificate()
50 return ssl_set_cert(sc->cert, x, SSL_CONNECTION_GET_CTX(sc)); in SSL_use_certificate()
85 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_use_certificate_file() local
87 if (sc == NULL) in SSL_use_certificate_file()
91 cert = PEM_read_bio_X509(in, &x, sc->default_passwd_callback, in SSL_use_certificate_file()
92 sc->default_passwd_callback_userdata); in SSL_use_certificate_file()
155 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_use_PrivateKey() local
157 if (sc == NULL) in SSL_use_PrivateKey()
164 ret = ssl_set_pkey(sc->cert, pkey, SSL_CONNECTION_GET_CTX(sc)); in SSL_use_PrivateKey()
190 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_use_PrivateKey_file() local
192 if (sc == NULL) in SSL_use_PrivateKey_file()
197 sc->default_passwd_callback, in SSL_use_PrivateKey_file()
198 sc->default_passwd_callback_userdata, in SSL_use_PrivateKey_file()
476 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in use_certificate_chain_file() local
478 if (sc == NULL) in use_certificate_chain_file()
481 passwd_callback = sc->default_passwd_callback; in use_certificate_chain_file()
482 passwd_callback_userdata = sc->default_passwd_callback_userdata; in use_certificate_chain_file()
660 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in serverinfoex_srv_add_cb() local
662 if (sc == NULL) { in serverinfoex_srv_add_cb()
672 if ((ssl_get_server_cert_serverinfo(sc, &serverinfo, in serverinfoex_srv_add_cb()
980 SSL_CONNECTION *sc = NULL; in ssl_set_cert_and_key() local
983 (sc = SSL_CONNECTION_FROM_SSL(ssl)) == NULL) in ssl_set_cert_and_key()
986 c = sc != NULL ? sc->cert : ctx->cert; in ssl_set_cert_and_key()
988 rv = ssl_security_cert(sc, ctx, x509, 0, 1); in ssl_set_cert_and_key()
994 rv = ssl_security_cert(sc, ctx, sk_X509_value(chain, j), 0, 0); in ssl_set_cert_and_key()