| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * in which case the provisions of the GPL or the LGPL are applicable instead | 27 * in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 * of those above. If you wish to allow use of your version of this file only | 28 * of those above. If you wish to allow use of your version of this file only |
| 29 * under the terms of either the GPL or the LGPL, and not to allow others to | 29 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 * use your version of this file under the terms of the MPL, indicate your | 30 * use your version of this file under the terms of the MPL, indicate your |
| 31 * decision by deleting the provisions above and replace them with the notice | 31 * decision by deleting the provisions above and replace them with the notice |
| 32 * and other provisions required by the GPL or the LGPL. If you do not delete | 32 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 * the provisions above, a recipient may use your version of this file under | 33 * the provisions above, a recipient may use your version of this file under |
| 34 * the terms of any one of the MPL, the GPL or the LGPL. | 34 * the terms of any one of the MPL, the GPL or the LGPL. |
| 35 * | 35 * |
| 36 * ***** END LICENSE BLOCK ***** */ | 36 * ***** END LICENSE BLOCK ***** */ |
| 37 /* $Id: sslinfo.c,v 1.23 2010/01/15 01:49:33 alexei.volkov.bugs%sun.com Exp $ */ | 37 /* $Id: sslinfo.c,v 1.23.2.1 2010/09/02 01:13:46 wtc%google.com Exp $ */ |
| 38 #include "ssl.h" | 38 #include "ssl.h" |
| 39 #include "sslimpl.h" | 39 #include "sslimpl.h" |
| 40 #include "sslproto.h" | 40 #include "sslproto.h" |
| 41 | 41 |
| 42 static const char * | 42 static const char * |
| 43 ssl_GetCompressionMethodName(SSLCompressionMethod compression) | 43 ssl_GetCompressionMethodName(SSLCompressionMethod compression) |
| 44 { | 44 { |
| 45 switch (compression) { | 45 switch (compression) { |
| 46 case ssl_compression_null: | 46 case ssl_compression_null: |
| 47 return "NULL"; | 47 return "NULL"; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 sniName = PORT_ZNew(SECItem); | 348 sniName = PORT_ZNew(SECItem); |
| 349 if (!sniName) { | 349 if (!sniName) { |
| 350 PORT_Free(name); | 350 PORT_Free(name); |
| 351 return NULL; | 351 return NULL; |
| 352 } | 352 } |
| 353 sniName->data = (void*)name; | 353 sniName->data = (void*)name; |
| 354 sniName->len = PORT_Strlen(name); | 354 sniName->len = PORT_Strlen(name); |
| 355 } | 355 } |
| 356 return sniName; | 356 return sniName; |
| 357 } | 357 } |
| OLD | NEW |