Lines Matching refs:sc
64 const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_get_session() local
66 if (sc == NULL) in SSL_get_session()
69 return sc->session; in SSL_get_session()
888 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_session() local
890 if (sc == NULL) in SSL_set_session()
893 ssl_clear_bad_session(sc); in SSL_set_session()
901 sc->verify_result = session->verify_result; in SSL_set_session()
903 SSL_SESSION_free(sc->session); in SSL_set_session()
904 sc->session = session; in SSL_set_session()
1143 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_session_secret_cb() local
1145 if (sc == NULL) in SSL_set_session_secret_cb()
1148 sc->ext.session_secret_cb = tls_session_secret_cb; in SSL_set_session_secret_cb()
1149 sc->ext.session_secret_cb_arg = arg; in SSL_set_session_secret_cb()
1156 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_session_ticket_ext_cb() local
1158 if (sc == NULL) in SSL_set_session_ticket_ext_cb()
1161 sc->ext.session_ticket_cb = cb; in SSL_set_session_ticket_ext_cb()
1162 sc->ext.session_ticket_cb_arg = arg; in SSL_set_session_ticket_ext_cb()
1168 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_session_ticket_ext() local
1170 if (sc == NULL) in SSL_set_session_ticket_ext()
1173 if (sc->version >= TLS1_VERSION) { in SSL_set_session_ticket_ext()
1174 OPENSSL_free(sc->ext.session_ticket); in SSL_set_session_ticket_ext()
1175 sc->ext.session_ticket = NULL; in SSL_set_session_ticket_ext()
1176 sc->ext.session_ticket = in SSL_set_session_ticket_ext()
1178 if (sc->ext.session_ticket == NULL) in SSL_set_session_ticket_ext()
1182 sc->ext.session_ticket->length = ext_len; in SSL_set_session_ticket_ext()
1183 sc->ext.session_ticket->data = sc->ext.session_ticket + 1; in SSL_set_session_ticket_ext()
1184 memcpy(sc->ext.session_ticket->data, ext_data, ext_len); in SSL_set_session_ticket_ext()
1186 sc->ext.session_ticket->length = 0; in SSL_set_session_ticket_ext()
1187 sc->ext.session_ticket->data = NULL; in SSL_set_session_ticket_ext()