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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 break; | 671 break; |
672 } | 672 } |
673 rv += " - "; | 673 rv += " - "; |
674 SECItem** itemList = notice->noticeReference.noticeNumbers; | 674 SECItem** itemList = notice->noticeReference.noticeNumbers; |
675 while (*itemList) { | 675 while (*itemList) { |
676 unsigned long number; | 676 unsigned long number; |
677 if (SEC_ASN1DecodeInteger(*itemList, &number) == SECSuccess) { | 677 if (SEC_ASN1DecodeInteger(*itemList, &number) == SECSuccess) { |
678 if (itemList != notice->noticeReference.noticeNumbers) | 678 if (itemList != notice->noticeReference.noticeNumbers) |
679 rv += ", "; | 679 rv += ", "; |
680 rv += '#'; | 680 rv += '#'; |
681 rv += base::UTF16ToUTF8(base::UintToString16(number)); | 681 rv += base::UTF16ToUTF8(base::Uint64ToString16(number)); |
682 } | 682 } |
683 itemList++; | 683 itemList++; |
684 } | 684 } |
685 } | 685 } |
686 if (notice->displayText.len != 0) { | 686 if (notice->displayText.len != 0) { |
687 rv += "\n "; | 687 rv += "\n "; |
688 switch (notice->displayText.type) { | 688 switch (notice->displayText.type) { |
689 case siAsciiString: | 689 case siAsciiString: |
690 case siVisibleString: | 690 case siVisibleString: |
691 case siUTF8String: | 691 case siUTF8String: |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 return net::USER_CERT; | 1074 return net::USER_CERT; |
1075 if ((all_flags & CERTDB_VALID_CA) || CERT_IsCACert(cert, NULL)) | 1075 if ((all_flags & CERTDB_VALID_CA) || CERT_IsCACert(cert, NULL)) |
1076 return net::CA_CERT; | 1076 return net::CA_CERT; |
1077 // TODO(mattm): http://crbug.com/128633. | 1077 // TODO(mattm): http://crbug.com/128633. |
1078 if (trust.sslFlags & CERTDB_TERMINAL_RECORD) | 1078 if (trust.sslFlags & CERTDB_TERMINAL_RECORD) |
1079 return net::SERVER_CERT; | 1079 return net::SERVER_CERT; |
1080 return net::OTHER_CERT; | 1080 return net::OTHER_CERT; |
1081 } | 1081 } |
1082 | 1082 |
1083 } // namespace mozilla_security_manager | 1083 } // namespace mozilla_security_manager |
OLD | NEW |