Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-console-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-console-l1-2-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-datetime-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-debug-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-errorhandling-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-fibers-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-fibers-l1-1-1.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l1-2-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l2-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-handle-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-heap-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-interlocked-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-kernel32-legacy-l1-1-1.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-libraryloader-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-localization-l1-2-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-memory-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-namedpipe-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processenvironment-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processthreads-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processthreads-l1-1-1.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-profile-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-rtlsupport-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-string-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-synch-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-synch-l1-2-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-sysinfo-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-sysinfo-l1-2-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-timezone-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-util-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-conio-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-convert-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-environment-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-filesystem-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-heap-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-locale-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-math-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-multibyte-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-private-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-process-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-runtime-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-stdio-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-string-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-time-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-utility-l1-1-0.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/c_rehash.pl +253 -0
- micromamba_root/envs/pytorch_env/Library/bin/ffi-8.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/libbz2.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/msvcp140_1.dll +0 -0
- micromamba_root/envs/pytorch_env/Library/bin/msvcp140_atomic_wait.dll +0 -0
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-console-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-console-l1-2-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-datetime-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-debug-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-errorhandling-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-fibers-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-fibers-l1-1-1.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l1-1-0.dll
ADDED
|
Binary file (27 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l1-2-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-file-l2-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-handle-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-heap-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-interlocked-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-kernel32-legacy-l1-1-1.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-libraryloader-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-localization-l1-2-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-memory-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-namedpipe-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processenvironment-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processthreads-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-processthreads-l1-1-1.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-profile-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-rtlsupport-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-string-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-synch-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-synch-l1-2-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-sysinfo-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-sysinfo-l1-2-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-timezone-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-core-util-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-conio-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-convert-l1-1-0.dll
ADDED
|
Binary file (27 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-environment-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-filesystem-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-heap-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-locale-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-math-l1-1-0.dll
ADDED
|
Binary file (31.1 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-multibyte-l1-1-0.dll
ADDED
|
Binary file (31.1 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-private-l1-1-0.dll
ADDED
|
Binary file (76.1 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-process-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-runtime-l1-1-0.dll
ADDED
|
Binary file (27 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-stdio-l1-1-0.dll
ADDED
|
Binary file (27 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-string-l1-1-0.dll
ADDED
|
Binary file (27 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-time-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/api-ms-win-crt-utility-l1-1-0.dll
ADDED
|
Binary file (22.9 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/c_rehash.pl
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env perl
|
| 2 |
+
|
| 3 |
+
# WARNING: do not edit!
|
| 4 |
+
# Generated by makefile from tools\c_rehash.in
|
| 5 |
+
# Copyright 1999-2025 The OpenSSL Project Authors. All Rights Reserved.
|
| 6 |
+
#
|
| 7 |
+
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
| 8 |
+
# this file except in compliance with the License. You can obtain a copy
|
| 9 |
+
# in the file LICENSE in the source distribution or at
|
| 10 |
+
# https://www.openssl.org/source/license.html
|
| 11 |
+
|
| 12 |
+
# Perl c_rehash script, scan all files in a directory
|
| 13 |
+
# and add symbolic links to their hash values.
|
| 14 |
+
|
| 15 |
+
my $dir = "C:\\Program Files\\Common Files\\ssl";
|
| 16 |
+
my $prefix = "D:/code/apps/devtools/micromamba_root/envs/pytorch_env\\Library";
|
| 17 |
+
|
| 18 |
+
my $errorcount = 0;
|
| 19 |
+
my $openssl = $ENV{OPENSSL} || "openssl";
|
| 20 |
+
my $pwd;
|
| 21 |
+
my $x509hash = "-subject_hash";
|
| 22 |
+
my $crlhash = "-hash";
|
| 23 |
+
my $verbose = 0;
|
| 24 |
+
my $symlink_exists=eval {symlink("",""); 1};
|
| 25 |
+
my $removelinks = 1;
|
| 26 |
+
|
| 27 |
+
## Parse flags.
|
| 28 |
+
while ( $ARGV[0] =~ /^-/ ) {
|
| 29 |
+
my $flag = shift @ARGV;
|
| 30 |
+
last if ( $flag eq '--');
|
| 31 |
+
if ( $flag eq '-old') {
|
| 32 |
+
$x509hash = "-subject_hash_old";
|
| 33 |
+
$crlhash = "-hash_old";
|
| 34 |
+
} elsif ( $flag eq '-h' || $flag eq '-help' ) {
|
| 35 |
+
help();
|
| 36 |
+
} elsif ( $flag eq '-n' ) {
|
| 37 |
+
$removelinks = 0;
|
| 38 |
+
} elsif ( $flag eq '-v' ) {
|
| 39 |
+
$verbose++;
|
| 40 |
+
}
|
| 41 |
+
else {
|
| 42 |
+
print STDERR "Usage error; try -h.\n";
|
| 43 |
+
exit 1;
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
sub help {
|
| 48 |
+
print "Usage: c_rehash [-old] [-h] [-help] [-v] [dirs...]\n";
|
| 49 |
+
print " -old use old-style digest\n";
|
| 50 |
+
print " -h or -help print this help text\n";
|
| 51 |
+
print " -v print files removed and linked\n";
|
| 52 |
+
exit 0;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
eval "require Cwd";
|
| 56 |
+
if (defined(&Cwd::getcwd)) {
|
| 57 |
+
$pwd=Cwd::getcwd();
|
| 58 |
+
} else {
|
| 59 |
+
$pwd=`pwd`;
|
| 60 |
+
chomp($pwd);
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
# DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
|
| 64 |
+
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
|
| 65 |
+
$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
|
| 66 |
+
|
| 67 |
+
if (!(-f $openssl && -x $openssl)) {
|
| 68 |
+
my $found = 0;
|
| 69 |
+
foreach (split /$path_delim/, $ENV{PATH}) {
|
| 70 |
+
if (-f "$_/$openssl" && -x "$_/$openssl") {
|
| 71 |
+
$found = 1;
|
| 72 |
+
$openssl = "$_/$openssl";
|
| 73 |
+
last;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
if ($found == 0) {
|
| 77 |
+
print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
|
| 78 |
+
exit 0;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
if (@ARGV) {
|
| 83 |
+
@dirlist = @ARGV;
|
| 84 |
+
} elsif ($ENV{SSL_CERT_DIR}) {
|
| 85 |
+
@dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
|
| 86 |
+
} else {
|
| 87 |
+
$dirlist[0] = "$dir/certs";
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
if (-d $dirlist[0]) {
|
| 91 |
+
chdir $dirlist[0];
|
| 92 |
+
$openssl="$pwd/$openssl" if (!(-f $openssl && -x $openssl));
|
| 93 |
+
chdir $pwd;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
foreach (@dirlist) {
|
| 97 |
+
if (-d $_ ) {
|
| 98 |
+
if ( -w $_) {
|
| 99 |
+
hash_dir($_);
|
| 100 |
+
} else {
|
| 101 |
+
print "Skipping $_, can't write\n";
|
| 102 |
+
$errorcount++;
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
exit($errorcount);
|
| 107 |
+
|
| 108 |
+
sub copy_file {
|
| 109 |
+
my ($src_fname, $dst_fname) = @_;
|
| 110 |
+
|
| 111 |
+
if (open(my $in, "<", $src_fname)) {
|
| 112 |
+
if (open(my $out, ">", $dst_fname)) {
|
| 113 |
+
print $out $_ while (<$in>);
|
| 114 |
+
close $out;
|
| 115 |
+
} else {
|
| 116 |
+
warn "Cannot open $dst_fname for write, $!";
|
| 117 |
+
}
|
| 118 |
+
close $in;
|
| 119 |
+
} else {
|
| 120 |
+
warn "Cannot open $src_fname for read, $!";
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
sub hash_dir {
|
| 125 |
+
my $dir = shift;
|
| 126 |
+
my %hashlist;
|
| 127 |
+
|
| 128 |
+
print "Doing $dir\n";
|
| 129 |
+
|
| 130 |
+
if (!chdir $dir) {
|
| 131 |
+
print STDERR "WARNING: Cannot chdir to '$dir', $!\n";
|
| 132 |
+
return;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
opendir(DIR, ".") || print STDERR "WARNING: Cannot opendir '.', $!\n";
|
| 136 |
+
my @flist = sort readdir(DIR);
|
| 137 |
+
closedir DIR;
|
| 138 |
+
if ( $removelinks ) {
|
| 139 |
+
# Delete any existing symbolic links
|
| 140 |
+
foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
|
| 141 |
+
if (-l $_) {
|
| 142 |
+
print "unlink $_\n" if $verbose;
|
| 143 |
+
unlink $_ || warn "Can't unlink $_, $!\n";
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
FILE: foreach $fname (grep {/\.(pem|crt|cer|crl)$/} @flist) {
|
| 148 |
+
# Check to see if certificates and/or CRLs present.
|
| 149 |
+
my ($cert, $crl) = check_file($fname);
|
| 150 |
+
if (!$cert && !$crl) {
|
| 151 |
+
print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
|
| 152 |
+
next;
|
| 153 |
+
}
|
| 154 |
+
link_hash_cert($fname) if ($cert);
|
| 155 |
+
link_hash_crl($fname) if ($crl);
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
chdir $pwd;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
sub check_file {
|
| 162 |
+
my ($is_cert, $is_crl) = (0,0);
|
| 163 |
+
my $fname = $_[0];
|
| 164 |
+
|
| 165 |
+
open(my $in, "<", $fname);
|
| 166 |
+
while(<$in>) {
|
| 167 |
+
if (/^-----BEGIN (.*)-----/) {
|
| 168 |
+
my $hdr = $1;
|
| 169 |
+
if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
|
| 170 |
+
$is_cert = 1;
|
| 171 |
+
last if ($is_crl);
|
| 172 |
+
} elsif ($hdr eq "X509 CRL") {
|
| 173 |
+
$is_crl = 1;
|
| 174 |
+
last if ($is_cert);
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
close $in;
|
| 179 |
+
return ($is_cert, $is_crl);
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
sub compute_hash {
|
| 183 |
+
my $fh;
|
| 184 |
+
if ( $^O eq "VMS" ) {
|
| 185 |
+
# VMS uses the open through shell
|
| 186 |
+
# The file names are safe there and list form is unsupported
|
| 187 |
+
if (!open($fh, "-|", join(' ', @_))) {
|
| 188 |
+
print STDERR "Cannot compute hash on '$fname'\n";
|
| 189 |
+
return;
|
| 190 |
+
}
|
| 191 |
+
} else {
|
| 192 |
+
if (!open($fh, "-|", @_)) {
|
| 193 |
+
print STDERR "Cannot compute hash on '$fname'\n";
|
| 194 |
+
return;
|
| 195 |
+
}
|
| 196 |
+
binmode($fh, ":crlf");
|
| 197 |
+
}
|
| 198 |
+
return (<$fh>, <$fh>);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
# Link a certificate to its subject name hash value, each hash is of
|
| 202 |
+
# the form <hash>.<n> where n is an integer. If the hash value already exists
|
| 203 |
+
# then we need to up the value of n, unless its a duplicate in which
|
| 204 |
+
# case we skip the link. We check for duplicates by comparing the
|
| 205 |
+
# certificate fingerprints
|
| 206 |
+
|
| 207 |
+
sub link_hash_cert {
|
| 208 |
+
link_hash($_[0], 'cert');
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
|
| 212 |
+
|
| 213 |
+
sub link_hash_crl {
|
| 214 |
+
link_hash($_[0], 'crl');
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
sub link_hash {
|
| 218 |
+
my ($fname, $type) = @_;
|
| 219 |
+
my $is_cert = $type eq 'cert';
|
| 220 |
+
|
| 221 |
+
my ($hash, $fprint) = compute_hash($openssl,
|
| 222 |
+
$is_cert ? "x509" : "crl",
|
| 223 |
+
$is_cert ? $x509hash : $crlhash,
|
| 224 |
+
"-fingerprint", "-noout",
|
| 225 |
+
"-in", $fname);
|
| 226 |
+
chomp $hash;
|
| 227 |
+
$hash =~ s/^.*=// if !$is_cert;
|
| 228 |
+
chomp $fprint;
|
| 229 |
+
return if !$hash;
|
| 230 |
+
$fprint =~ s/^.*=//;
|
| 231 |
+
$fprint =~ tr/://d;
|
| 232 |
+
my $suffix = 0;
|
| 233 |
+
# Search for an unused hash filename
|
| 234 |
+
my $crlmark = $is_cert ? "" : "r";
|
| 235 |
+
while(exists $hashlist{"$hash.$crlmark$suffix"}) {
|
| 236 |
+
# Hash matches: if fingerprint matches its a duplicate cert
|
| 237 |
+
if ($hashlist{"$hash.$crlmark$suffix"} eq $fprint) {
|
| 238 |
+
my $what = $is_cert ? 'certificate' : 'CRL';
|
| 239 |
+
print STDERR "WARNING: Skipping duplicate $what $fname\n";
|
| 240 |
+
return;
|
| 241 |
+
}
|
| 242 |
+
$suffix++;
|
| 243 |
+
}
|
| 244 |
+
$hash .= ".$crlmark$suffix";
|
| 245 |
+
if ($symlink_exists) {
|
| 246 |
+
print "link $fname -> $hash\n" if $verbose;
|
| 247 |
+
symlink $fname, $hash || warn "Can't symlink, $!";
|
| 248 |
+
} else {
|
| 249 |
+
print "copy $fname -> $hash\n" if $verbose;
|
| 250 |
+
copy_file($fname, $hash);
|
| 251 |
+
}
|
| 252 |
+
$hashlist{$hash} = $fprint;
|
| 253 |
+
}
|
micromamba_root/envs/pytorch_env/Library/bin/ffi-8.dll
ADDED
|
Binary file (27.1 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/libbz2.dll
ADDED
|
Binary file (77.8 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/msvcp140_1.dll
ADDED
|
Binary file (36 kB). View file
|
|
|
micromamba_root/envs/pytorch_env/Library/bin/msvcp140_atomic_wait.dll
ADDED
|
Binary file (50.3 kB). View file
|
|
|