| OLD | NEW |
| 1 /* | 1 /* |
| 2 * crypto.h - public data structures and prototypes for the crypto library | 2 * crypto.h - public data structures and prototypes for the crypto library |
| 3 * | 3 * |
| 4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * in which case the provisions of the GPL or the LGPL are applicable instead | 29 * in which case the provisions of the GPL or the LGPL are applicable instead |
| 30 * of those above. If you wish to allow use of your version of this file only | 30 * of those above. If you wish to allow use of your version of this file only |
| 31 * under the terms of either the GPL or the LGPL, and not to allow others to | 31 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 32 * use your version of this file under the terms of the MPL, indicate your | 32 * use your version of this file under the terms of the MPL, indicate your |
| 33 * decision by deleting the provisions above and replace them with the notice | 33 * decision by deleting the provisions above and replace them with the notice |
| 34 * and other provisions required by the GPL or the LGPL. If you do not delete | 34 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 35 * the provisions above, a recipient may use your version of this file under | 35 * the provisions above, a recipient may use your version of this file under |
| 36 * the terms of any one of the MPL, the GPL or the LGPL. | 36 * the terms of any one of the MPL, the GPL or the LGPL. |
| 37 * | 37 * |
| 38 * ***** END LICENSE BLOCK ***** */ | 38 * ***** END LICENSE BLOCK ***** */ |
| 39 /* $Id: secdig.h,v 1.8 2008/06/14 14:20:38 wtc%google.com Exp $ */ | 39 /* $Id: secdig.h,v 1.9 2010/04/25 23:37:37 nelson%bolyard.com Exp $ */ |
| 40 | 40 |
| 41 #ifndef _SECDIG_H_ | 41 #ifndef _SECDIG_H_ |
| 42 #define _SECDIG_H_ | 42 #define _SECDIG_H_ |
| 43 | 43 |
| 44 #include "utilrename.h" | 44 #include "utilrename.h" |
| 45 #include "secdigt.h" | 45 #include "secdigt.h" |
| 46 | 46 |
| 47 #include "seccomon.h" | 47 #include "seccomon.h" |
| 48 #include "secasn1t.h" | 48 #include "secasn1t.h" |
| 49 #include "secdert.h" | 49 #include "secdert.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 /* | 111 /* |
| 112 ** Copy digest info. | 112 ** Copy digest info. |
| 113 ** poolp is the arena to which the digest will be copied. | 113 ** poolp is the arena to which the digest will be copied. |
| 114 ** a is the destination digest, it must be non-NULL. | 114 ** a is the destination digest, it must be non-NULL. |
| 115 ** b is the source digest | 115 ** b is the source digest |
| 116 ** This function is for copying digests. It allows digests | 116 ** This function is for copying digests. It allows digests |
| 117 ** to be copied into a specified pool. If the digest is in | 117 ** to be copied into a specified pool. If the digest is in |
| 118 ** the same pool as other data, you do not want to delete | 118 ** the same pool as other data, you do not want to delete |
| 119 ** the digest by calling SGN_DestroyDigestInfo. | 119 ** the digest by calling SGN_DestroyDigestInfo. |
| 120 ** A return value of SECFailure indicates an error. A return | 120 ** A return value of SECFailure indicates an error. A return |
| 121 ** of SECSuccess indicates no error occured. | 121 ** of SECSuccess indicates no error occurred. |
| 122 */ | 122 */ |
| 123 extern SECStatus SGN_CopyDigestInfo(PLArenaPool *poolp, | 123 extern SECStatus SGN_CopyDigestInfo(PLArenaPool *poolp, |
| 124 SGNDigestInfo *a, | 124 SGNDigestInfo *a, |
| 125 SGNDigestInfo *b); | 125 SGNDigestInfo *b); |
| 126 | 126 |
| 127 /* | 127 /* |
| 128 ** Compare two digest-info objects, returning the difference between | 128 ** Compare two digest-info objects, returning the difference between |
| 129 ** them. | 129 ** them. |
| 130 */ | 130 */ |
| 131 extern SECComparison SGN_CompareDigestInfo(SGNDigestInfo *a, SGNDigestInfo *b); | 131 extern SECComparison SGN_CompareDigestInfo(SGNDigestInfo *a, SGNDigestInfo *b); |
| 132 | 132 |
| 133 | 133 |
| 134 SEC_END_PROTOS | 134 SEC_END_PROTOS |
| 135 | 135 |
| 136 #endif /* _SECDIG_H_ */ | 136 #endif /* _SECDIG_H_ */ |
| OLD | NEW |