Lines Matching refs:sc

82     SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);  in ssl3_dispatch_alert()  local
85 if (sc == NULL) in ssl3_dispatch_alert()
88 if (sc->rlayer.wrlmethod == NULL) { in ssl3_dispatch_alert()
90 sc->s3.alert_dispatch = SSL_ALERT_DISPATCH_NONE; in ssl3_dispatch_alert()
95 templ.version = (sc->version == TLS1_3_VERSION) ? TLS1_2_VERSION in ssl3_dispatch_alert()
96 : sc->version; in ssl3_dispatch_alert()
98 && !sc->renegotiate in ssl3_dispatch_alert()
100 && sc->hello_retry_request == SSL_HRR_NONE) { in ssl3_dispatch_alert()
103 templ.buf = &sc->s3.send_alert[0]; in ssl3_dispatch_alert()
106 if (RECORD_LAYER_write_pending(&sc->rlayer)) { in ssl3_dispatch_alert()
107 if (sc->s3.alert_dispatch != SSL_ALERT_DISPATCH_RETRY) { in ssl3_dispatch_alert()
113 sc->s3.alert_dispatch = SSL_ALERT_DISPATCH_NONE; in ssl3_dispatch_alert()
117 i = HANDLE_RLAYER_WRITE_RETURN(sc, in ssl3_dispatch_alert()
118 sc->rlayer.wrlmethod->retry_write_records(sc->rlayer.wrl)); in ssl3_dispatch_alert()
123 sc->rlayer.wpend_tot = 0; in ssl3_dispatch_alert()
124 sc->s3.alert_dispatch = SSL_ALERT_DISPATCH_NONE; in ssl3_dispatch_alert()
128 i = HANDLE_RLAYER_WRITE_RETURN(sc, in ssl3_dispatch_alert()
129 sc->rlayer.wrlmethod->write_records(sc->rlayer.wrl, &templ, 1)); in ssl3_dispatch_alert()
132 sc->s3.alert_dispatch = SSL_ALERT_DISPATCH_RETRY; in ssl3_dispatch_alert()
133 sc->rlayer.wpend_tot = templ.buflen; in ssl3_dispatch_alert()
134 sc->rlayer.wpend_type = templ.type; in ssl3_dispatch_alert()
135 sc->rlayer.wpend_buf = templ.buf; in ssl3_dispatch_alert()
141 (void)BIO_flush(sc->wbio); in ssl3_dispatch_alert()
142 sc->s3.alert_dispatch = SSL_ALERT_DISPATCH_NONE; in ssl3_dispatch_alert()
144 if (sc->msg_callback) in ssl3_dispatch_alert()
145 sc->msg_callback(1, sc->version, SSL3_RT_ALERT, sc->s3.send_alert, in ssl3_dispatch_alert()
146 2, s, sc->msg_callback_arg); in ssl3_dispatch_alert()
148 if (sc->info_callback != NULL) in ssl3_dispatch_alert()
149 cb = sc->info_callback; in ssl3_dispatch_alert()
154 j = (sc->s3.send_alert[0] << 8) | sc->s3.send_alert[1]; in ssl3_dispatch_alert()