| 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 #ifndef _SECOID_H_ | 5 #ifndef _SECOID_H_ |
| 6 #define _SECOID_H_ | 6 #define _SECOID_H_ |
| 7 | 7 |
| 8 #include "utilrename.h" | 8 #include "utilrename.h" |
| 9 | 9 |
| 10 /* | 10 /* |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 extern SECStatus SECOID_SetAlgorithmID(PLArenaPool *arena, SECAlgorithmID *aid, | 47 extern SECStatus SECOID_SetAlgorithmID(PLArenaPool *arena, SECAlgorithmID *aid, |
| 48 SECOidTag tag, SECItem *params); | 48 SECOidTag tag, SECItem *params); |
| 49 | 49 |
| 50 /* | 50 /* |
| 51 ** Copy the "src" object to "dest". Memory is allocated in "dest" for | 51 ** Copy the "src" object to "dest". Memory is allocated in "dest" for |
| 52 ** each of the appropriate sub-objects. Memory in "dest" is not freed | 52 ** each of the appropriate sub-objects. Memory in "dest" is not freed |
| 53 ** before memory is allocated (use SECOID_DestroyAlgorithmID(dest, PR_FALSE) | 53 ** before memory is allocated (use SECOID_DestroyAlgorithmID(dest, PR_FALSE) |
| 54 ** to do that). | 54 ** to do that). |
| 55 */ | 55 */ |
| 56 extern SECStatus SECOID_CopyAlgorithmID(PLArenaPool *arena, SECAlgorithmID *dest
, | 56 extern SECStatus SECOID_CopyAlgorithmID(PLArenaPool *arena, SECAlgorithmID *dest
, |
| 57 » » » » SECAlgorithmID *src); | 57 » » » » const SECAlgorithmID *src); |
| 58 | 58 |
| 59 /* | 59 /* |
| 60 ** Get the tag number for the given algorithm-id object. | 60 ** Get the tag number for the given algorithm-id object. |
| 61 */ | 61 */ |
| 62 extern SECOidTag SECOID_GetAlgorithmTag(SECAlgorithmID *aid); | 62 extern SECOidTag SECOID_GetAlgorithmTag(const SECAlgorithmID *aid); |
| 63 | 63 |
| 64 /* | 64 /* |
| 65 ** Destroy an algorithm-id object. | 65 ** Destroy an algorithm-id object. |
| 66 ** "aid" the certificate-request to destroy | 66 ** "aid" the certificate-request to destroy |
| 67 ** "freeit" if PR_TRUE then free the object as well as its sub-objects | 67 ** "freeit" if PR_TRUE then free the object as well as its sub-objects |
| 68 */ | 68 */ |
| 69 extern void SECOID_DestroyAlgorithmID(SECAlgorithmID *aid, PRBool freeit); | 69 extern void SECOID_DestroyAlgorithmID(SECAlgorithmID *aid, PRBool freeit); |
| 70 | 70 |
| 71 /* | 71 /* |
| 72 ** Compare two algorithm-id objects, returning the difference between | 72 ** Compare two algorithm-id objects, returning the difference between |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 * algorithm: | 132 * algorithm: |
| 133 * policy[tag] = (policy[tag] & ~clearBits) | setBits; | 133 * policy[tag] = (policy[tag] & ~clearBits) | setBits; |
| 134 */ | 134 */ |
| 135 extern SECStatus | 135 extern SECStatus |
| 136 NSS_SetAlgorithmPolicy(SECOidTag tag, PRUint32 setBits, PRUint32 clearBits); | 136 NSS_SetAlgorithmPolicy(SECOidTag tag, PRUint32 setBits, PRUint32 clearBits); |
| 137 | 137 |
| 138 | 138 |
| 139 SEC_END_PROTOS | 139 SEC_END_PROTOS |
| 140 | 140 |
| 141 #endif /* _SECOID_H_ */ | 141 #endif /* _SECOID_H_ */ |
| OLD | NEW |