| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Table enumerating all implemented cipher suites | 2 * Table enumerating all implemented cipher suites |
| 3 * Part of public API. | 3 * Part of public API. |
| 4 * | 4 * |
| 5 * ***** BEGIN LICENSE BLOCK ***** | 5 * This Source Code Form is subject to the terms of the Mozilla Public |
| 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 * | 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 8 * The contents of this file are subject to the Mozilla Public License Version | 8 /* $Id: sslenum.c,v 1.19 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ |
| 9 * 1.1 (the "License"); you may not use this file except in compliance with | |
| 10 * the License. You may obtain a copy of the License at | |
| 11 * http://www.mozilla.org/MPL/ | |
| 12 * | |
| 13 * Software distributed under the License is distributed on an "AS IS" basis, | |
| 14 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
| 15 * for the specific language governing rights and limitations under the | |
| 16 * License. | |
| 17 * | |
| 18 * The Original Code is the Netscape security libraries. | |
| 19 * | |
| 20 * The Initial Developer of the Original Code is | |
| 21 * Netscape Communications Corporation. | |
| 22 * Portions created by the Initial Developer are Copyright (C) 1994-2000 | |
| 23 * the Initial Developer. All Rights Reserved. | |
| 24 * | |
| 25 * Contributor(s): | |
| 26 * Dr Stephen Henson <stephen.henson@gemplus.com> | |
| 27 * Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories | |
| 28 * | |
| 29 * Alternatively, the contents of this file may be used under the terms of | |
| 30 * either the GNU General Public License Version 2 or later (the "GPL"), or | |
| 31 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
| 32 * in which case the provisions of the GPL or the LGPL are applicable instead | |
| 33 * of those above. If you wish to allow use of your version of this file only | |
| 34 * under the terms of either the GPL or the LGPL, and not to allow others to | |
| 35 * use your version of this file under the terms of the MPL, indicate your | |
| 36 * decision by deleting the provisions above and replace them with the notice | |
| 37 * and other provisions required by the GPL or the LGPL. If you do not delete | |
| 38 * the provisions above, a recipient may use your version of this file under | |
| 39 * the terms of any one of the MPL, the GPL or the LGPL. | |
| 40 * | |
| 41 * ***** END LICENSE BLOCK ***** */ | |
| 42 /* $Id: sslenum.c,v 1.18 2012/03/06 00:26:31 wtc%google.com Exp $ */ | |
| 43 | 9 |
| 44 #include "ssl.h" | 10 #include "ssl.h" |
| 45 #include "sslproto.h" | 11 #include "sslproto.h" |
| 46 | 12 |
| 47 /* | 13 /* |
| 48 * The ciphers are listed in the following order: | 14 * The ciphers are listed in the following order: |
| 49 * - stronger ciphers before weaker ciphers | 15 * - stronger ciphers before weaker ciphers |
| 50 * - national ciphers before international ciphers | 16 * - national ciphers before international ciphers |
| 51 * - faster ciphers before slower ciphers | 17 * - faster ciphers before slower ciphers |
| 52 * | 18 * |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 SSL_GetImplementedCiphers(void) | 125 SSL_GetImplementedCiphers(void) |
| 160 { | 126 { |
| 161 return SSL_ImplementedCiphers; | 127 return SSL_ImplementedCiphers; |
| 162 } | 128 } |
| 163 | 129 |
| 164 PRUint16 | 130 PRUint16 |
| 165 SSL_GetNumImplementedCiphers(void) | 131 SSL_GetNumImplementedCiphers(void) |
| 166 { | 132 { |
| 167 return SSL_NumImplementedCiphers; | 133 return SSL_NumImplementedCiphers; |
| 168 } | 134 } |
| OLD | NEW |