diff options
Diffstat (limited to 'WebCore/platform/mac/SSLKeyGeneratorMac.mm')
-rw-r--r-- | WebCore/platform/mac/SSLKeyGeneratorMac.mm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/WebCore/platform/mac/SSLKeyGeneratorMac.mm b/WebCore/platform/mac/SSLKeyGeneratorMac.mm index 5c4161a..dd76b59 100644 --- a/WebCore/platform/mac/SSLKeyGeneratorMac.mm +++ b/WebCore/platform/mac/SSLKeyGeneratorMac.mm @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003 Apple Computer, Inc. All rights reserved. + * Copyright (C) 2003, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,22 +31,19 @@ namespace WebCore { -Vector<String> supportedKeySizes() +void getSupportedKeySizes(Vector<String>& supportedKeySizes) { NSEnumerator *enumerator = [[[WebCoreKeyGenerator sharedGenerator] strengthMenuItemTitles] objectEnumerator]; - Vector<String> supportedKeySizes; NSString *string; - while ((string = [enumerator nextObject]) != nil) { + while ((string = [enumerator nextObject]) != nil) supportedKeySizes.append(string); - } - return supportedKeySizes; } String signedPublicKeyAndChallengeString(unsigned keySizeIndex, const String& challengeString, const KURL& url) { return [[WebCoreKeyGenerator sharedGenerator] signedPublicKeyAndChallengeStringWithStrengthIndex:keySizeIndex challenge:challengeString - pageURL:url.getNSURL()]; + pageURL:url]; } } |