-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Implement fallback to ASN1_STRING_data #362
Implement fallback to ASN1_STRING_data #362
Conversation
f40bf56
to
2c1e088
Compare
2c1e088
to
fca1eec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. Avoids useless allocations, and it still has debug output.
The person reporting the error via email confirmed NSD compiles on Solaris again with both GCC and the Sun compiler, so we're good there. |
Just tested https://github.com/k0ekk0ek/nsd/tree/test-for-asn1-string-get0-data Code looks good to me and I like the simplification of the code after your changes. |
Thanks for testing @bilias! |
@k0ekk0ek Trying to find out why TLS-auth does not work can be tricky some times, especially with the default output log of openssl which sucks (in my opinion). That's why I did all that fuzz and added all those extra DEBUG. Maybe some errors deserve a (better) VERBOSITY log. |
The version used of OpenSSL used by the opencsw project is too old and does not offer
ASN1_STRING_get0_data
. Implement falling back toANS1_STRING_data
instead. Also fixessk_GENERAL_NAME_pop_free
not being called if the subject alternative name matched previously. Apart from that, I also removed duplication of the common name, I'm not sure it adds useful debugging info.