OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 /* | 5 /* |
6 * SMIME message methods | 6 * SMIME message methods |
7 */ | 7 */ |
8 | 8 |
9 #include "cmslocal.h" | 9 #include "cmslocal.h" |
10 #include "smime.h" | 10 #include "smime.h" |
11 | 11 |
12 #include "cert.h" | 12 #include "cert.h" |
13 #include "key.h" | 13 #include "key.h" |
14 #include "secasn1.h" | 14 #include "secasn1.h" |
15 #include "secitem.h" | 15 #include "secitem.h" |
16 #include "secoid.h" | 16 #include "secoid.h" |
17 #include "pk11func.h" | 17 #include "pk11func.h" |
18 #include "prtime.h" | 18 #include "prtime.h" |
19 #include "secerr.h" | 19 #include "secerr.h" |
20 | 20 |
21 | |
22 #if 0 | 21 #if 0 |
23 /* | 22 /* |
24 * NSS_SMIMEMessage_CreateEncrypted - start an S/MIME encrypting context. | 23 * NSS_SMIMEMessage_CreateEncrypted - start an S/MIME encrypting context. |
25 * | 24 * |
26 * "scert" is the cert for the sender. It will be checked for validity. | 25 * "scert" is the cert for the sender. It will be checked for validity. |
27 * "rcerts" are the certs for the recipients. They will also be checked. | 26 * "rcerts" are the certs for the recipients. They will also be checked. |
28 * | 27 * |
29 * "certdb" is the cert database to use for verifying the certs. | 28 * "certdb" is the cert database to use for verifying the certs. |
30 * It can be NULL if a default database is available (like in the client). | 29 * It can be NULL if a default database is available (like in the client). |
31 * | 30 * |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 goto loser; | 174 goto loser; |
176 } | 175 } |
177 | 176 |
178 return cmsg; | 177 return cmsg; |
179 loser: | 178 loser: |
180 if (cmsg) | 179 if (cmsg) |
181 NSS_CMSMessage_Destroy(cmsg); | 180 NSS_CMSMessage_Destroy(cmsg); |
182 return NULL; | 181 return NULL; |
183 } | 182 } |
184 #endif | 183 #endif |
OLD | NEW |