diff -ru Crypt-SSLeay-0.51.orig/Makefile.PL Crypt-SSLeay-0.51/Makefile.PL
--- Crypt-SSLeay-0.51.orig/Makefile.PL	2003-04-22 01:38:06.000000000 -0400
+++ Crypt-SSLeay-0.51/Makefile.PL	2003-11-05 13:45:21.000000000 -0500
@@ -12,11 +12,21 @@
 my $currdir = dirname($0) || '.';
 chdir($currdir) || die("can't change to $currdir: $!");
 
+my($SEP, $SSL_LIB, $SSL_INC, $LIBS, $candidate);
 # FIND POSSIBLE SSL INSTALLATIONS
 my @POSSIBLE_SSL_DIRS = qw(/usr/local/openssl /usr/local/ssl /local/ssl /opt/ssl /usr/local /local /usr);
 if($^O eq 'MSWin32') {
     unshift(@POSSIBLE_SSL_DIRS, 'c:/openssl');
 }
+if($^O eq 'VMS') {
+    unshift(@POSSIBLE_SSL_DIRS, 'SSL$ROOT');
+# 64 bit libraries have not yet been tested:
+#    $LIBS = "SYS\$SHARE:SSL\$LIB$SSL_SHR.EXE\nSYS\$SHARE:SSL\$LIBCRYPTO_SHR.EXE";
+    $LIBS = "SYS\$SHARE:SSL\$LIBSSL_SHR32.EXE\nSYS\$SHARE:SSL\$LIBCRYPTO_SHR32.EXE";
+    $SSL_INC = "SSL\$ROOT:[INCLUDE]";
+    $SEP = "/";
+    @$candidate = ();
+}
 
 my @CANDIDATE;
 my $open_ssl = 0;
@@ -48,22 +58,26 @@
     if($ARGV[0] =~ /^[a-z]\:|^\//i) {
 	$SSL_DIR = shift;
     } else {
-	unless($CANDIDATE[0][0]) {
-	    print "No OpenSSL installation found, usually in $POSSIBLE_SSL_DIRS[0]\n";
-	}
-	$SSL_DIR = prompt "Which OpenSSL build path do you want to link against?", $CANDIDATE[0][0];
+        if ( $^O ne 'VMS' ) {
+	    unless($CANDIDATE[0][0]) {
+	        print "No OpenSSL installation found, usually in $POSSIBLE_SSL_DIRS[0]\n";
+	    }
+	    $SSL_DIR = prompt "Which OpenSSL build path do you want to link against?", $CANDIDATE[0][0];
+        }
+        else {
+            $SSL_DIR = 'SSL$ROOT';
+        }
     }
 }
 
-my $candidate = &Candidate($SSL_DIR);
+$candidate = &Candidate($SSL_DIR);
 unless($candidate) {
     warn "Apparently no SSLeay installation at '$SSL_DIR'\nAre you sure you got it correct????\n"
       unless -f "$SSL_DIR/include/ssl.h";
 }
-$candidate ||= ["$SSL_DIR", "$SSL_DIR/include"];
+$candidate ||= ["$SSL_DIR", "$SSL_DIR/include"] if ( $^O ne 'VMS' );
 
-my($SEP, $SSL_LIB, $SSL_INC, $LIBS);
-$SSL_INC = "$SSL_DIR/include";
+$SSL_INC = "$SSL_DIR/include" if ( $^O ne 'VMS' );
 
 if($^O =~ /Win32/) {
     unless($SSL_DIR =~ /^[a-zA-Z]\:/) {
@@ -90,6 +104,8 @@
 
     $SEP = "\\";
     $LIBS = "-lssleay32 -llibeay32 -lRSAglue -lrsaref";
+} elsif ( $^O eq 'VMS' ) {
+    # no overrides
 } else {
     $SSL_LIB = "-L".$SSL_DIR."/lib";
     $SEP = "/";
@@ -182,7 +198,7 @@
 	 "$dir/include/crypto.h"
 	) 
       {
-	  if(-e $_) {
+	  if(-e $_ && ( ! /crypto\.h/ && $^O eq 'VMS' ) ) {
 	      $version_file = $_;
 	  } 
       }
@@ -209,14 +225,23 @@
     # Silly test to look for the library files
     my $foundlib = 0;
     my $libd = (-d "$dir/out32dll") ? 'out32dll' : 'lib';
-    if (opendir(LIBDIR, "$dir/$libd")) {
-	while (defined($_ = readdir(LIBDIR))) {
-	    $foundlib++ if /^libssl/;
-	    $foundlib++ if /^libcrypto/;
-	    $foundlib++ if /^ssleay32/;
-	    $foundlib++ if /^libeay32/;
-	}
+    if ( $^O eq 'VMS' ) {
+        my @libs = split(/\n/,$LIBS);
+        for ( @libs ) {
+            chomp;
+            $foundlib++ if -x $_;
+        }
+    }
+    else {
+        if (opendir(LIBDIR, "$dir/$libd")) {
+	    while (defined($_ = readdir(LIBDIR))) {
+	        $foundlib++ if /^libssl/;
+	        $foundlib++ if /^libcrypto/;
+	        $foundlib++ if /^ssleay32/;
+	        $foundlib++ if /^libeay32/;
+    	    }
 	closedir(LIBDIR);
+        }
     }
     warn "$dir/lib does not seem to contain the SSLeay library files\n"
 	unless $foundlib;
diff -ru Crypt-SSLeay-0.51.orig/README Crypt-SSLeay-0.51/README
--- Crypt-SSLeay-0.51.orig/README	2003-06-10 22:46:21.000000000 -0400
+++ Crypt-SSLeay-0.51/README	2003-11-05 13:47:15.000000000 -0500
@@ -107,6 +107,19 @@
       2  For problems with this, please contact ActiveState.
       !!!          Please see http://www.activestate.com/
 
+      VMS users can obtain OpenSSL from:
+
+      http://h71000.www7.hp.com/openvms/products/ssl/ssl.html
+
+      You should have the ssl.h header at SSL$ROOT:[INCLUDE]ssl.h
+      a version header at SSL$ROOT:[INCLUDE]OPENSSLV.H, and sharable
+      images SYS$SHARE:SSL$LIBSSL_SHR32.EXE and SYS$SHARE:SSL$LIBCRYPTO_SHR32.EXE
+      (there is also a set up for the 64 bit versions commented out in the Makefile.PL).
+      You should be able to use the build tool used to build your perl (MMS or MMK)
+      determine which with:
+
+          perl "-V:make"
+
 PROXY SUPPORT
     LWP::UserAgent and Crypt::SSLeay have their own versions of proxy
     support. Please read these sections to see which one may be right for
@@ -241,6 +254,7 @@
      Solaris 2.6    x86     SSLeay 0.8.0    5.00501  ?      1999-08-12      Joshua Chamas
      Linux 2.2.10   x86     OpenSSL 0.9.4   5.00503  ?      1999-08-11      John Barrett
      WinNT SP4      x86     SSLeay 0.9.2    5.00404  ?      1999-08-10      Joshua Chamas
+     VMS 7.3-1      AXP     OpenSSL 0.9.6g  5.008001 ?      2003-11-05      Peter Prymmer
 
 BUILD NOTES
   Win32, WinNT, Win2000, can't build
