OpenTLS ready
[openssl.git] / util / up_ver.pl
index e4a13bf..66ee4c3 100755 (executable)
@@ -34,6 +34,7 @@
        "ssl/ssl_lib.c",
        "ssl/s2_lib.c",
        "ssl/s3_lib.c",
+       "ssl/s23_lib.c",
        "ssl/t1_lib.c",
        "README",
        );
@@ -59,7 +60,7 @@ foreach $file (@files)
 
        while (<IN>)
                {
-               if ((s/SSLeay \d\.\d.\d[^"]*(\"|\s)/SSLeay $ver $time\1/) ||
+               if ((s/(SSLeay|OpenTLS) \d\.\d.\d[^"]*(\"|\s)/\1 $ver $time\2/) ||
                        s/^(\#define\s+SSLEAY_VERSION_NUMBER\s+0x)[0-9a-zA-Z]+(.*)$/$1$xver$2/)
                        {
                        print STDERR " Done";
@@ -74,6 +75,6 @@ foreach $file (@files)
        close(IN);
        close(OUT);
        (!$found) && die "unable to update the version number in $file\n";
-       rename($file,"$file.old") || die "unable to rename $file:$!\n";
+       rename($file,"$file.bak") || die "unable to rename $file:$!\n";
        rename("$file.new",$file) || die "unable to rename $file.new:$!\n";
        }