-
Notifications
You must be signed in to change notification settings - Fork 45
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
Added better error handling #13
Conversation
Thanks for getting started on this. |
Co-authored-by: Cameron Katri <me@cameronkatri.com>
@CRKatri Should there be a version bump for Ldid once error checking is done? |
ldid.cpp
Outdated
|
||
if (ca_ == NULL) | ||
ca_ = sk_X509_new_null(); | ||
if(ca_ == NULL){ | ||
printf("An error occured while parsing: %s\n", ERR_error_string(ERR_get_error(), NULL)); | ||
printf("An error occured while parsing: \n %s\n", ERR_error_string(ERR_get_error(), NULL)); |
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.
Please don't re-add those newlines, I had removed them on purpose.
That is the current plan. |
We should ideally use exit(EXIT_FAILURE); |
And EXIT_SUCCESS |
What should the new version number be do you think? |
It will be |
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Started replacing asserts with if statements to check for errors