]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/ocspTool/ocspUtils.h
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / clxutils / ocspTool / ocspUtils.h
1 #include <CoreFoundation/CoreFoundation.h>
2 #include <Security/cssmtype.h>
3 #include <Security/SecIdentity.h>
4
5 #if 0
6 /*
7 * Convert a generalized time string, assumed to be in UTC with a 4-digit year,
8 * to a CFAbsoluteTime. Returns NULL_TIME on error.
9 */
10 #define NULL_TIME 0.0
11
12 extern CFAbsoluteTime genTimeToCFAbsTime(
13 const char *str,
14 unsigned len);
15
16 CFAbsoluteTime parseGenTime(
17 const char *timeStr,
18 unsigned timeStrLen);
19 #endif
20
21 /*
22 * Sign some data with an identity.
23 */
24 OSStatus ocspSign(
25 SecIdentityRef idRef,
26 CSSM_DATA &plainText,
27 CSSM_ALGORITHMS algId, // RSA/SHA1, DSA/SHA1
28 CSSM_DATA &sig); // caller must APP_FREE()
29