Lines Matching refs:rl

26 void RECORD_LAYER_init(RECORD_LAYER *rl, SSL_CONNECTION *s)  in RECORD_LAYER_init()  argument
28 rl->s = s; in RECORD_LAYER_init()
31 int RECORD_LAYER_clear(RECORD_LAYER *rl) in RECORD_LAYER_clear() argument
36 while (rl->curr_rec < rl->num_recs) in RECORD_LAYER_clear()
37 ret &= ssl_release_record(rl->s, in RECORD_LAYER_clear()
38 &(rl->tlsrecs[rl->curr_rec++]), in RECORD_LAYER_clear()
42 rl->wnum = 0; in RECORD_LAYER_clear()
43 memset(rl->handshake_fragment, 0, sizeof(rl->handshake_fragment)); in RECORD_LAYER_clear()
44 rl->handshake_fragment_len = 0; in RECORD_LAYER_clear()
45 rl->wpend_tot = 0; in RECORD_LAYER_clear()
46 rl->wpend_type = 0; in RECORD_LAYER_clear()
47 rl->wpend_buf = NULL; in RECORD_LAYER_clear()
48 rl->alert_count = 0; in RECORD_LAYER_clear()
49 rl->num_recs = 0; in RECORD_LAYER_clear()
50 rl->curr_rec = 0; in RECORD_LAYER_clear()
52 BIO_free(rl->rrlnext); in RECORD_LAYER_clear()
53 rl->rrlnext = NULL; in RECORD_LAYER_clear()
55 if (rl->rrlmethod != NULL) in RECORD_LAYER_clear()
56 rl->rrlmethod->free(rl->rrl); /* Ignore return value */ in RECORD_LAYER_clear()
57 if (rl->wrlmethod != NULL) in RECORD_LAYER_clear()
58 rl->wrlmethod->free(rl->wrl); /* Ignore return value */ in RECORD_LAYER_clear()
59 BIO_free(rl->rrlnext); in RECORD_LAYER_clear()
60 rl->rrlmethod = NULL; in RECORD_LAYER_clear()
61 rl->wrlmethod = NULL; in RECORD_LAYER_clear()
62 rl->rrlnext = NULL; in RECORD_LAYER_clear()
63 rl->rrl = NULL; in RECORD_LAYER_clear()
64 rl->wrl = NULL; in RECORD_LAYER_clear()
66 if (rl->d) in RECORD_LAYER_clear()
67 DTLS_RECORD_LAYER_clear(rl); in RECORD_LAYER_clear()
72 int RECORD_LAYER_reset(RECORD_LAYER *rl) in RECORD_LAYER_reset() argument
76 ret = RECORD_LAYER_clear(rl); in RECORD_LAYER_reset()
79 ret &= ssl_set_new_record_layer(rl->s, in RECORD_LAYER_reset()
80 SSL_CONNECTION_IS_DTLS(rl->s) in RECORD_LAYER_reset()
87 ret &= ssl_set_new_record_layer(rl->s, in RECORD_LAYER_reset()
88 SSL_CONNECTION_IS_DTLS(rl->s) in RECORD_LAYER_reset()
100 int RECORD_LAYER_read_pending(const RECORD_LAYER *rl) in RECORD_LAYER_read_pending() argument
102 return rl->rrlmethod->unprocessed_read_pending(rl->rrl); in RECORD_LAYER_read_pending()
106 int RECORD_LAYER_processed_read_pending(const RECORD_LAYER *rl) in RECORD_LAYER_processed_read_pending() argument
108 return (rl->curr_rec < rl->num_recs) in RECORD_LAYER_processed_read_pending()
109 || rl->rrlmethod->processed_read_pending(rl->rrl); in RECORD_LAYER_processed_read_pending()
112 int RECORD_LAYER_write_pending(const RECORD_LAYER *rl) in RECORD_LAYER_write_pending() argument
114 return rl->wpend_tot > 0; in RECORD_LAYER_write_pending()
1121 int RECORD_LAYER_is_sslv2_record(RECORD_LAYER *rl) in RECORD_LAYER_is_sslv2_record() argument
1123 if (SSL_CONNECTION_IS_DTLS(rl->s)) in RECORD_LAYER_is_sslv2_record()
1125 return rl->tlsrecs[0].version == SSL2_VERSION; in RECORD_LAYER_is_sslv2_record()