void get_ssl_request(void) { request *conn; conn = get_sock_request(server_ssl); if (!conn) return; conn->ssl = SSL_new (ctx); if(conn->ssl == NULL){ printf("Couldn't create ssl connection stuff\n"); return; } SSL_set_fd (conn->ssl, conn->fd); if(SSL_accept(conn->ssl) <= 0){ ERR_print_errors_fp(stderr); return; } else{/*printf("SSL_accepted\n");*/} }
void get_ssl_request(void) { request *conn; // SSL *ssl; int err; conn = get_sock_request(server_ssl); if (!conn) return; // printf("ssl socket done - %x\n", conn->fd);/*fflush(stdout); sleep(1);*/ conn->ssl = SSL_new (ctx); if(conn->ssl == NULL){ printf("Couldn't create ssl connection stuff\n");/*fflush(stdout); sleep(1);*/ return; } SSL_set_fd (conn->ssl, conn->fd); // printf("SSL - Set the file des. \n"); if(SSL_accept(conn->ssl) <= 0){ ERR_print_errors_fp(stderr); return; } else{/*printf("SSL_accepted\n");*/} // printf("SSL - err is %x\n", err);/*fflush(stdout); sleep(1);*/ }
void get_request(void) { get_sock_request(server_s); }