| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef SSLKeyGenerator_h | 26 #ifndef SSLKeyGenerator_h |
| 27 #define SSLKeyGenerator_h | 27 #define SSLKeyGenerator_h |
| 28 | 28 |
| 29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
| 30 #include "wtf/Vector.h" | 30 #include "wtf/Vector.h" |
| 31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace blink { |
| 34 | 34 |
| 35 class KURL; | 35 class KURL; |
| 36 class Locale; | 36 class Locale; |
| 37 | 37 |
| 38 // Returns strings representing key sizes that may be used | 38 // Returns strings representing key sizes that may be used |
| 39 // for the <keygen> tag. The first string is displayed as the default | 39 // for the <keygen> tag. The first string is displayed as the default |
| 40 // key size in the <keygen> menu. | 40 // key size in the <keygen> menu. |
| 41 PLATFORM_EXPORT void getSupportedKeySizes(Locale&, Vector<String>& sizes); | 41 PLATFORM_EXPORT void getSupportedKeySizes(Locale&, Vector<String>& sizes); |
| 42 | 42 |
| 43 // This function handles the <keygen> tag in form elements. | 43 // This function handles the <keygen> tag in form elements. |
| 44 // Returns a signed copy of the combined challenge string and public | 44 // Returns a signed copy of the combined challenge string and public |
| 45 // key (from a newly generated key pair). | 45 // key (from a newly generated key pair). |
| 46 PLATFORM_EXPORT String signedPublicKeyAndChallengeString(unsigned keySizeIndex,
const String& challengeString, const KURL&); | 46 PLATFORM_EXPORT String signedPublicKeyAndChallengeString(unsigned keySizeIndex,
const String& challengeString, const KURL&); |
| 47 | 47 |
| 48 } // namespace WebCore | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // SSLKeyGenerator_h | 50 #endif // SSLKeyGenerator_h |
| OLD | NEW |