alexcrichton / openssl-src-rs

Source code and logic to build OpenSSL from source
Apache License 2.0
69 stars 115 forks source link

canonicalize file names so they can be found on windows #25

Open thedavidmeister opened 5 years ago

thedavidmeister commented 5 years ago
C:\build\net\target\wasm32-unknown-unknown\release\build\openssl-sys-965b815f479a83db\out\openssl-build\build\src\pyca-cryptography\vectors\cryptography_vectors\x509\PKITS_data\certpairs\requireExplicitPolicy7subsubsubCARE2RE4CertforwardcrossCertificatePair.cp

this has 260 characters, which blows up the MAX_PATH on windows when the null terminator is added

canonicalizing file paths avoids this issue to allow the extended length path

https://doc.rust-lang.org/std/fs/fn.canonicalize.html