ports/net/ssvnc/files/patch-vncstorepw_ultravnc__dsm__helper.c
John Marino 0324329bb3 net/ssvnc: Document and configure SSL, fix build for LibreSSL
While here, modernize and cleanup the port and honor flags
2016-09-13 15:29:02 +00:00

13 lines
518 B
C

--- vncstorepw/ultravnc_dsm_helper.c.orig 2010-04-23 04:29:43 UTC
+++ vncstorepw/ultravnc_dsm_helper.c
@@ -413,8 +413,10 @@ void enc_do(char *ciph, char *keyfile, c
p++;
if (strstr(p, "md5+") == p) {
Digest = EVP_md5(); p += strlen("md5+");
+#ifndef OPENSSL_NO_SHA0
} else if (strstr(p, "sha+") == p) {
Digest = EVP_sha(); p += strlen("sha+");
+#endif
} else if (strstr(p, "sha1+") == p) {
Digest = EVP_sha1(); p += strlen("sha1+");
} else if (strstr(p, "ripe+") == p) {