summaryrefslogtreecommitdiff
path: root/pith/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/conf.c')
-rw-r--r--pith/conf.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/pith/conf.c b/pith/conf.c
index cea59de..73a868b 100644
--- a/pith/conf.c
+++ b/pith/conf.c
@@ -52,8 +52,6 @@ static char rcsid[] = "$Id: conf.c 1266 2009-07-14 18:39:12Z hubert@u.washington
#include "../pico/osdep/mswin.h"
#endif
-#include <openssl/ssl.h>
-
#define TO_BAIL_THRESHOLD 60
@@ -8450,37 +8448,3 @@ pcpine_general_help(titlebuf)
#endif /* _WINDOWS */
-typedef struct ssl_versions_s {
- char *name;
- int version;
-} SSL_VERSIONS_S;
-
-int
-pith_ssl_encryption_version(char *s)
-{
- SSL_VERSIONS_S ssl_versions[] = {
- {"no_min", 0},
- {"ssl3", SSL3_VERSION},
- {"tls1", TLS1_VERSION},
- {"tls1_1", TLS1_1_VERSION },
- {"tls1_2", TLS1_2_VERSION},
-#ifdef TLS1_3_VERSION
- {"tls1_3", TLS1_3_VERSION},
-#endif /* TLS1_3_VERSION */
- {"no_max", 0}, /* set this last in the list */
- { NULL, 0},
- };
- int i;
-
- if(s == NULL || *s == '\0')
- return -1;
-
- for(i = 0; ssl_versions[i].name != NULL; i++)
- if(strcmp(ssl_versions[i].name, s) == 0)
- break;
-
- if(strcmp(s, "no_max") == 0) i--;
-
- return ssl_versions[i].name != NULL ? ssl_versions[i].version : -1;
-}
-