Permalink
Browse files

Merge pull request #2714 from abhibeckert/master

#2437 disable keychain access when passwords are being sent as cleartext
  • Loading branch information...
abhibeckert committed Mar 3, 2017
2 parents 4b9ce74 + 9c5357a commit baa9d677f242927f68a91ad52b9dee6873489c45
Showing with 17 additions and 0 deletions.
  1. +17 −0 Source/SPKeychain.m
View
@@ -38,6 +38,23 @@
@implementation SPKeychain
- (id)init
{
if (!(self = [super init])) {
return nil;
}
NSString *cleartext = [NSProcessInfo processInfo].environment[@"LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN"];
if (cleartext != nil) {
NSLog(@"LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN is set. Disabling keychain access. See Issue #2437");
[self release];
return nil;
}
return self;
}
/**
* Add the supplied password to the user's Keychain using the supplied name and account.
*/

0 comments on commit baa9d67

Please sign in to comment.