diff options
author | marino <marino@FreeBSD.org> | 2016-09-13 00:10:41 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-09-13 00:10:41 +0800 |
commit | 4e4eb3d3da480979c47bf58d519816467aa218c3 (patch) | |
tree | ee59658575bdb1e8fe51c8e44696b275ca95ee7d /net/ssltunnel-client | |
parent | f9dd6fbdebfaed340292a3cf2769d2b683c1ddd7 (diff) | |
download | freebsd-ports-gnome-4e4eb3d3da480979c47bf58d519816467aa218c3.tar.gz freebsd-ports-gnome-4e4eb3d3da480979c47bf58d519816467aa218c3.tar.zst freebsd-ports-gnome-4e4eb3d3da480979c47bf58d519816467aa218c3.zip |
net/ssltunnel-client: Configure SSL base, handle deprecated DES (LIbreSSL)
Approved by: SSL blanket
Diffstat (limited to 'net/ssltunnel-client')
-rw-r--r-- | net/ssltunnel-client/Makefile | 7 | ||||
-rw-r--r-- | net/ssltunnel-client/files/patch-client_ntlmauth.c | 43 |
2 files changed, 47 insertions, 3 deletions
diff --git a/net/ssltunnel-client/Makefile b/net/ssltunnel-client/Makefile index 6879abb51fcd..0c58f7d747e3 100644 --- a/net/ssltunnel-client/Makefile +++ b/net/ssltunnel-client/Makefile @@ -16,10 +16,11 @@ LICENSE= BSD3CLAUSE OPTIONS_DEFINE= GUI DOCS GUI_DESC= GTK 1.2 graphical interface -CONFIGURE_ARGS= --disable-server --with-iconv=${ICONV_PREFIX} +CONFIGURE_ARGS= --disable-server \ + --with-iconv=${ICONV_PREFIX} \ + --with-openssl=${OPENSSLBASE} GNU_CONFIGURE= yes -USES= iconv -USE_OPENSSL= yes +USES= iconv ssl .include <bsd.port.options.mk> diff --git a/net/ssltunnel-client/files/patch-client_ntlmauth.c b/net/ssltunnel-client/files/patch-client_ntlmauth.c new file mode 100644 index 000000000000..1a6742699a97 --- /dev/null +++ b/net/ssltunnel-client/files/patch-client_ntlmauth.c @@ -0,0 +1,43 @@ +--- client/ntlmauth.c.orig 2009-02-05 15:32:12 UTC ++++ client/ntlmauth.c +@@ -56,7 +56,7 @@ extern int write_timeout(int s, char *b + extern int read_timeout(int s, char *buffer, int size, int tmo); + extern void do_log( int prio, char *format , ...); + +-static void setup_des_key(unsigned char *key56, des_key_schedule *ks); ++static void setup_des_key(unsigned char *key56, DES_key_schedule *ks); + static void calc_resp(unsigned char *keys, unsigned char *plaintext, unsigned char *results); + static char *do_ntlm_auth_1(char *username, char *password); + static char *do_ntlm_auth_2(iconv_t myiconv, char *username, char *password, char *challenge); +@@ -156,8 +156,8 @@ static char *do_ntlm_auth_2(iconv_t myic + unsigned char *nt_pw = NULL,*lm_resp,*nt_resp; + const unsigned char magic[] = "KGS!@#$%"; + unsigned char lm_hpw[50]; +- des_key_schedule ks1; +- des_key_schedule ks2; ++ DES_key_schedule ks1; ++ DES_key_schedule ks2; + unsigned char nt_hpw[50]; + MD4_CTX context; + unsigned short server_flags; +@@ -558,9 +558,9 @@ catch: + * turns a 56 bit key into the 64 bit, odd parity key and sets the key. + * The key schedule ks is also set. + */ +-static void setup_des_key(unsigned char key_56[], des_key_schedule *ks) ++static void setup_des_key(unsigned char key_56[], DES_key_schedule *ks) + { +- des_cblock key; ++ DES_cblock key; + + key[0] = key_56[0]; + key[1] = ((key_56[0] << 7) & 0xFF) | (key_56[1] >> 1); +@@ -582,7 +582,7 @@ static void setup_des_key(unsigned char + */ + static void calc_resp(unsigned char *keys, unsigned char *plaintext, unsigned char *results) + { +- des_key_schedule ks; ++ DES_key_schedule ks; + + setup_des_key(keys, &ks); + DES_ecb_encrypt((const_DES_cblock *) plaintext, (const_DES_cblock *) results, &ks, DES_ENCRYPT); |