Lines Matching refs:SSL
127 static int do_dtls1_write(SSL *ssl, int type, const uint8_t *buf,
133 static int dtls1_get_record(SSL *ssl) { in dtls1_get_record()
160 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in dtls1_get_record()
184 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in dtls1_get_record()
188 int dtls1_read_app_data(SSL *ssl, uint8_t *buf, int len, int peek) { in dtls1_read_app_data()
192 int dtls1_read_change_cipher_spec(SSL *ssl) { in dtls1_read_change_cipher_spec()
202 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_CHANGE_CIPHER_SPEC); in dtls1_read_change_cipher_spec()
215 void dtls1_read_close_notify(SSL *ssl) { in dtls1_read_close_notify()
235 int dtls1_read_bytes(SSL *ssl, int type, unsigned char *buf, int len, int peek) { in dtls1_read_bytes()
239 void (*cb)(const SSL *ssl, int type, int value) = NULL; in dtls1_read_bytes()
244 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in dtls1_read_bytes()
255 OPENSSL_PUT_ERROR(SSL, SSL_R_SSL_HANDSHAKE_FAILURE); in dtls1_read_bytes()
307 OPENSSL_PUT_ERROR(SSL, SSL_R_APP_DATA_IN_HANDSHAKE); in dtls1_read_bytes()
347 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_ALERT); in dtls1_read_bytes()
382 OPENSSL_PUT_ERROR(SSL, SSL_AD_REASON_OFFSET + alert_descr); in dtls1_read_bytes()
390 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_ALERT_TYPE); in dtls1_read_bytes()
426 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_HANDSHAKE_RECORD); in dtls1_read_bytes()
453 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in dtls1_read_bytes()
460 int dtls1_write_app_data(SSL *ssl, const void *buf_, int len) { in dtls1_write_app_data()
469 OPENSSL_PUT_ERROR(SSL, SSL_R_SSL_HANDSHAKE_FAILURE); in dtls1_write_app_data()
475 OPENSSL_PUT_ERROR(SSL, SSL_R_DTLS_MESSAGE_TOO_BIG); in dtls1_write_app_data()
486 int dtls1_write_bytes(SSL *ssl, int type, const void *buf, int len, in dtls1_write_bytes()
496 static int do_dtls1_write(SSL *ssl, int type, const uint8_t *buf, in do_dtls1_write()
513 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in do_dtls1_write()
539 int dtls1_dispatch_alert(SSL *ssl) { in dtls1_dispatch_alert()
541 void (*cb)(const SSL *ssl, int type, int value) = NULL; in dtls1_dispatch_alert()