Skip to content
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

meta_x509: avoid bad time values and catch error string exception #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knowmalware
Copy link
Contributor

cert.get_not_before() and cert.get_not_after() can return the string
'Bad time value', which was causing exception when attempting to parse
with strptime().

The string.split()'ing on the ugly_error_string was sometimes not
producing the number of values expected. If this occurs, the code
now calls addFlag("x509:err:unknown").

cert.get_not_before() and cert.get_not_after() can return the string
'Bad time value', which was causing exception when attempting to parse
with strptime().

The string.split()'ing on the ugly_error_string was sometimes not
producing the number of values expected.  If this occurs, the code
now calls addFlag("x509:err:unknown").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant