opnsense-ports/www/hydra/files/patch-src__cgi_ssl.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

33 lines
777 B
C

--- src/cgi_ssl.c.orig Thu Nov 20 01:00:59 2003
+++ src/cgi_ssl.c Thu Nov 20 01:01:17 2003
@@ -19,7 +19,7 @@
*/
#include "boa.h"
-#include <gnutls/x509.h>
+#include <gnutls/gnutls.h>
#ifdef ENABLE_SSL
extern int ssl_verify;
@@ -44,7 +44,7 @@
# define GNUTLS_MAX_SESSION_ID 32
#endif
char session_id[GNUTLS_MAX_SESSION_ID];
- int session_id_length = sizeof(session_id);
+ size_t session_id_length = sizeof(session_id);
int i, ret;
char str_session_id[(GNUTLS_MAX_SESSION_ID * 2) + 1];
size_t size;
@@ -128,10 +128,10 @@
}
{
- const gnutls_datum *cert_list;
+ const gnutls_datum_t *cert_list;
char buf[512];
int cert_list_size, ret;
- gnutls_x509_crt crt;
+ gnutls_x509_crt_t crt;
buf[0] = 0;