You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
Index: sample-scripts/verify-cn
|
|
|
|
|
--- sample-scripts/verify-cn.orig 2005-02-07 03:08:16 +0100
|
|
|
|
|
+++ sample-scripts/verify-cn 2005-08-25 19:37:04 +0200
|
|
|
|
|
@@ -36,7 +36,8 @@
|
|
|
|
|
if ($x509 =~ /\/CN=([^\/]+)/) {
|
|
|
|
|
# Accept the connection if the X509 common name
|
|
|
|
|
# string matches the passed cn argument.
|
|
|
|
|
- if ($cn eq $1) {
|
|
|
|
|
+ my $x509_cn = $1;
|
|
|
|
|
+ if ($x509_cn =~ m/^${cn}$/s) {
|
|
|
|
|
exit 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Index: tun.c
|
|
|
|
|
--- tun.c.orig 2005-08-04 06:46:17.000000000 +0200
|
|
|
|
|
+++ tun.c 2005-09-28 20:31:17.062344594 +0200
|
|
|
|
|
@@ -1168,7 +1168,8 @@
|
|
|
|
|
#elif defined(TARGET_SOLARIS)
|
|
|
|
|
|
|
|
|
|
#ifndef TUNNEWPPA
|
|
|
|
|
-#error I need the symbol TUNNEWPPA from net/if_tun.h
|
|
|
|
|
+#warning I usually need the symbol TUNNEWPPA from net/if_tun.h -- using a shameless local copy taken from TUN 1.1
|
|
|
|
|
+#define TUNNEWPPA (('T'<<16) | 0x0001)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
void
|