-
Notifications
You must be signed in to change notification settings - Fork 283
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
Fixing various errors/warnings for windows. #21
Conversation
@kruton this gets us a lot closer to building on windows. Just a few misc items remain. |
@@ -487,7 +492,7 @@ static bool throwExceptionIfNecessary(JNIEnv* env, const char* location __attri | |||
} | |||
|
|||
ERR_clear_error(); | |||
return result; | |||
return result != 0; |
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.
Might make sense to change this too a bool instead.
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.
yup .. done.
@@ -9173,7 +9180,7 @@ static bool get_ocsp_single_responses(CBS *basic_response, CBS *single_responses | |||
} | |||
|
|||
// Extract the list of SingleResponse. | |||
return CBS_get_asn1(&response_data, single_responses, CBS_ASN1_SEQUENCE); | |||
return CBS_get_asn1(&response_data, single_responses, CBS_ASN1_SEQUENCE) != 0; |
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.
I like it more when we use "== 1" but that might be a holdout when OpenSSL returned a tri-state with 0 meaning not successful and -1 meaning error.
@@ -20,34 +20,39 @@ | |||
|
|||
#define TO_STRING1(x) #x | |||
#define TO_STRING(x) TO_STRING1(x) | |||
#ifndef JNI_JARJAR_PREFIX | |||
#ifdef JNI_JARJAR_PREFIX | |||
#define CONSCRYPT_SYMBOL_PREFIX = TO_STRING(JNI_JARJAR_PREFIX) |
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.
Hmm, what does the =
do here?
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.
oof ... fixed.
@kruton PTAL |
No description provided.