diff --git a/src/client.c b/src/client.c index 33e0c8b..a792263 100644 --- a/src/client.c +++ b/src/client.c @@ -48,7 +48,6 @@ int client_connection_handler(sock *client) { client->ssl = SSL_new(client->ctx); SSL_set_fd(client->ssl, client->socket); SSL_set_accept_state(client->ssl); - SSL_set_bio(client->ssl, client->bio_in, client->bio_out); ret = SSL_accept(client->ssl); if (ret <= 0) { @@ -61,8 +60,6 @@ int client_connection_handler(sock *client) { if (client->enc) { SSL_shutdown(client->ssl); SSL_free(client->ssl); - BIO_free(client->bio_in); - BIO_free(client->bio_out); } shutdown(client->socket, SHUT_RDWR); close(client->socket); diff --git a/src/necronda-server.c b/src/necronda-server.c index dcf83d8..3271439 100644 --- a/src/necronda-server.c +++ b/src/necronda-server.c @@ -200,11 +200,6 @@ int main(int argc, const char *argv[]) { return 1; } - client.bio_in = BIO_new(BIO_s_mem()); - client.bio_out = BIO_new(BIO_s_mem()); - BIO_set_mem_eof_return(client.bio_in, -1); - BIO_set_mem_eof_return(client.bio_out, -1); - for (int i = 0; i < NUM_SOCKETS; i++) { if (listen(SOCKETS[i], LISTEN_BACKLOG) == -1) { fprintf(stderr, ERR_STR "Unable to listen on socket %i: %s" CLR_STR "\n", i, strerror(errno)); diff --git a/src/necronda-server.h b/src/necronda-server.h index 175496b..a115d52 100644 --- a/src/necronda-server.h +++ b/src/necronda-server.h @@ -10,7 +10,6 @@ #include #include -#include #include #include #include @@ -38,8 +37,6 @@ typedef struct { int socket; SSL_CTX *ctx; SSL *ssl; - BIO *bio_in; - BIO *bio_out; } sock; char *ssl_get_error(SSL *ssl, int ret);