Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Provide OpenSSL error when we can't read the public key #6

Merged
merged 1 commit into from

2 participants

@billymeltdown

Just a convenience, thought I'd pass it along. Thanks for the great library!

@billymeltdown billymeltdown let's have that openssl error message (e.g. "OpenSSL couldn't read th…
…e public key: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode") when the public key can't be read
ba49865
@glebd glebd merged commit a4bb275 into glebd:master
@glebd
Owner

Done, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 20, 2012
  1. @billymeltdown

    let's have that openssl error message (e.g. "OpenSSL couldn't read th…

    billymeltdown authored
    …e public key: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode") when the public key can't be read
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  objc/CFobLicVerifier.m
View
3  objc/CFobLicVerifier.m
@@ -124,7 +124,8 @@ - (BOOL)setPublicKey:(NSString *)pubKey error:(NSError **)err
BOOL result = YES;
if (!self.dsa->pub_key) {
- CFobAssignErrorWithDescriptionAndCode(err, @"Unable to decode key.", CFobErrorCodeCouldNotDecode);
+ NSString *message = [NSString stringWithFormat:@"Unable to decode public key: %s", ERR_error_string(ERR_get_error (), NULL)];
+ CFobAssignErrorWithDescriptionAndCode(err, message, CFobErrorCodeCouldNotDecode);
result = NO;
}
Something went wrong with that request. Please try again.