OLD | NEW |
1 /* | 1 /* |
2 * NSS utility functions | 2 * NSS utility functions |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 | 7 |
8 #include "secport.h" | 8 #include "secport.h" |
9 #include "secoid.h" | 9 #include "secoid.h" |
10 #include "secitem.h" | 10 #include "secitem.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 return SECOID_FindOIDByTag_Util(tagnum); | 286 return SECOID_FindOIDByTag_Util(tagnum); |
287 } | 287 } |
288 | 288 |
289 SECStatus SECOID_SetAlgorithmID(PLArenaPool *arena, SECAlgorithmID *aid, | 289 SECStatus SECOID_SetAlgorithmID(PLArenaPool *arena, SECAlgorithmID *aid, |
290 SECOidTag tag, SECItem *params) | 290 SECOidTag tag, SECItem *params) |
291 { | 291 { |
292 return SECOID_SetAlgorithmID_Util(arena, aid, tag, params); | 292 return SECOID_SetAlgorithmID_Util(arena, aid, tag, params); |
293 } | 293 } |
294 | 294 |
295 SECStatus SECOID_CopyAlgorithmID(PLArenaPool *arena, SECAlgorithmID *dest, | 295 SECStatus SECOID_CopyAlgorithmID(PLArenaPool *arena, SECAlgorithmID *dest, |
296 » » » » SECAlgorithmID *src) | 296 » » » » const SECAlgorithmID *src) |
297 { | 297 { |
298 return SECOID_CopyAlgorithmID_Util(arena, dest, src); | 298 return SECOID_CopyAlgorithmID_Util(arena, dest, src); |
299 } | 299 } |
300 | 300 |
301 SECOidTag SECOID_GetAlgorithmTag(SECAlgorithmID *aid) | 301 SECOidTag SECOID_GetAlgorithmTag(const SECAlgorithmID *aid) |
302 { | 302 { |
303 return SECOID_GetAlgorithmTag_Util(aid); | 303 return SECOID_GetAlgorithmTag_Util(aid); |
304 } | 304 } |
305 | 305 |
306 void SECOID_DestroyAlgorithmID(SECAlgorithmID *aid, PRBool freeit) | 306 void SECOID_DestroyAlgorithmID(SECAlgorithmID *aid, PRBool freeit) |
307 { | 307 { |
308 SECOID_DestroyAlgorithmID_Util(aid, freeit); | 308 SECOID_DestroyAlgorithmID_Util(aid, freeit); |
309 } | 309 } |
310 | 310 |
311 SECComparison SECOID_CompareAlgorithmID(SECAlgorithmID *a, | 311 SECComparison SECOID_CompareAlgorithmID(SECAlgorithmID *a, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 #undef SEC_PointerToAnyTemplate | 785 #undef SEC_PointerToAnyTemplate |
786 #undef SEC_PointerToOctetStringTemplate | 786 #undef SEC_PointerToOctetStringTemplate |
787 #undef SEC_SetOfAnyTemplate | 787 #undef SEC_SetOfAnyTemplate |
788 #undef SEC_UTCTimeTemplate | 788 #undef SEC_UTCTimeTemplate |
789 #undef SEC_UTF8StringTemplate | 789 #undef SEC_UTF8StringTemplate |
790 #undef SECOID_AlgorithmIDTemplate | 790 #undef SECOID_AlgorithmIDTemplate |
791 #undef sgn_DigestInfoTemplate | 791 #undef sgn_DigestInfoTemplate |
792 | 792 |
793 #include "templates.c" | 793 #include "templates.c" |
794 | 794 |
OLD | NEW |