aboutsummaryrefslogtreecommitdiff
path: root/sslutils.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-07 22:37:50 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-07 22:37:50 -0800
commit9225ae2eca86dc75ee9d4c8a626e0c9c1d5a7831 (patch)
treeed3bfe10ebd9f5bfe5e708a53251a6d9b97566c7 /sslutils.h
parent941280a5cd6aefafa79ff4dd032c4467a42c1fd1 (diff)
Make the key file and certificate file names local to sslutils.c.
Have routines that set them, given a pointer to the name. Use that in rpcapd, rather than copying to a buffer (you don't need to copy strings from argv - unless you're going to overwrite them, which you probably shouldn't do). This removes a requirement for the platform to define PATH_MAX.
Diffstat (limited to 'sslutils.h')
-rw-r--r--sslutils.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/sslutils.h b/sslutils.h
index a769cfee..63810538 100644
--- a/sslutils.h
+++ b/sslutils.h
@@ -39,17 +39,11 @@
#include "pcap/pcap.h" // for SOCKET
/*
- * Configuration parameters
- */
-
-extern char ssl_keyfile[PATH_MAX];
-extern char ssl_certfile[PATH_MAX];
-extern char ssl_rootfile[PATH_MAX];
-
-/*
* Utility functions
*/
+void ssl_set_certfile(const char *certfile);
+void ssl_set_keyfile(const char *keyfile);
int ssl_init_once(int is_server, int enable_compression, char *errbuf, size_t errbuflen);
SSL *ssl_promotion(int is_server, SOCKET s, char *errbuf, size_t errbuflen);
SSL *ssl_promotion_rw(int is_server, SOCKET in, SOCKET out, char *errbuf, size_t errbuflen);