-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openssl reads cert.pem in two-byte increments on Windows #786
Comments
Can be reproduced using: #include <openssl/ssl.h>
int main(int argc, char **argv)
{
SSL_CTX* ctx = SSL_CTX_new(TLS_client_method());
SSL_CTX_set_default_verify_file(ctx);
return 0;
} OpenSSL disabled file buffering when text mode is enabled: openssl/openssl#13190 To work around an issue in the UCRT: https://developercommunity.visualstudio.com/t/fseek-ftell-fail-in-text-mode-for-unix-style-text/425878 |
I submitted openssl/openssl#24249 |
New PR: openssl/openssl#25716 |
Migrated issue to PA-7281 |
Closing this issue because puppet-runtime is being archived (see OSPTE-212) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
openssl shipped in the runtime inefficiently reads cert.pem on Windows. A simple
puppet --version
results in 116k calls to ReadFile with a two-byte buffer as can be seen from Process Monitor:Expected Behavior
It should use buffered reads
Steps to Reproduce
Steps to reproduce the behavior:
ruby.exe
puppet --version
Environment
Additional Context
This might be a bug in upstream openssl 3.0.x. Need to check if puppet-agent 7.x/openssl 1.1.1 has the same issue.
The text was updated successfully, but these errors were encountered: