openbsd-ports/mail/nail/patches/patch-makeconfig

42 lines
884 B
Plaintext

$OpenBSD: patch-makeconfig,v 1.1 2010/10/03 21:24:52 sthen Exp $
work with OpenSSL 1.0, from upstream repo.
--- makeconfig.orig Sat Apr 14 16:24:28 2007
+++ makeconfig Sun Oct 3 21:14:23 2010
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Sccsid @(#)makeconfig 1.43 (gritter) 4/14/07
+# Sccsid @(#)makeconfig 1.44 (gritter) 5/26/09
#
tmp=___build$$
@@ -393,6 +393,25 @@ CERTAltNameEncodedContext foo;
!
fi
+if test x$have_openssl = xyes
+then
+ compile_check stack_of 'for STACK_OF()' '#define HAVE_STACK_OF' <<\!
+#include <openssl/ssl.h>
+#include <openssl/err.h>
+#include <openssl/x509v3.h>
+#include <openssl/x509.h>
+#include <openssl/rand.h>
+
+int main(void)
+{
+ STACK_OF(GENERAL_NAME) *gens = NULL;
+ printf("%p", gens); /* to make it used */
+ SSLv23_client_method();
+ PEM_read_PrivateKey(0, 0, 0, 0);
+ return 0;
+}
+!
+fi
cat >$tmp2.c <<\!
#include <gssapi/gssapi.h>