openvpn.patch 803 B

123456789101112131415161718192021222324252627
  1. Index: sample-scripts/verify-cn
  2. --- sample-scripts/verify-cn.orig 2005-02-07 03:08:16 +0100
  3. +++ sample-scripts/verify-cn 2005-08-25 19:37:04 +0200
  4. @@ -36,7 +36,8 @@
  5. if ($x509 =~ /\/CN=([^\/]+)/) {
  6. # Accept the connection if the X509 common name
  7. # string matches the passed cn argument.
  8. - if ($cn eq $1) {
  9. + my $x509_cn = $1;
  10. + if ($x509_cn =~ m/^${cn}$/s) {
  11. exit 0;
  12. }
  13. }
  14. Index: tun.c
  15. --- tun.c.orig 2005-08-04 06:46:17.000000000 +0200
  16. +++ tun.c 2005-09-28 20:31:17.062344594 +0200
  17. @@ -1168,7 +1168,8 @@
  18. #elif defined(TARGET_SOLARIS)
  19. #ifndef TUNNEWPPA
  20. -#error I need the symbol TUNNEWPPA from net/if_tun.h
  21. +#warning I usually need the symbol TUNNEWPPA from net/if_tun.h -- using a shameless local copy taken from TUN 1.1
  22. +#define TUNNEWPPA (('T'<<16) | 0x0001)
  23. #endif
  24. void