diff options
Diffstat (limited to 'test/ssltestlib.h')
-rw-r--r-- | test/ssltestlib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ssltestlib.h b/test/ssltestlib.h index f0f32c8301..04952a6f29 100644 --- a/test/ssltestlib.h +++ b/test/ssltestlib.h @@ -22,4 +22,14 @@ int create_ssl_connection(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, const BIO_METHOD *bio_f_tls_dump_filter(void); void bio_f_tls_dump_filter_free(void); +const BIO_METHOD *bio_s_mempacket_test(void); +void bio_s_mempacket_test_free(void); + +/* Packet types - value 0 is reserved */ +#define INJECT_PACKET 1 +#define INJECT_PACKET_IGNORE_REC_SEQ 2 + +int mempacket_test_inject(BIO *bio, const char *in, int inl, int pktnum, + int type); + #endif /* HEADER_SSLTESTLIB_H */ |