]> git.saurik.com Git - apple/securityd.git/blob - tests/testclient.h
c0b5e6f6d5f5d4346b3149f991e1de0e4057394f
[apple/securityd.git] / tests / testclient.h
1 /*
2 * Copyright (c) 2000-2001,2004 Apple Computer, Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26
27 //
28 // Tester - test driver for securityserver client side.
29 //
30 #ifndef _H_TESTCLIENT
31 #define _H_TESTCLIENT
32
33 #include "ssclient.h"
34 #include <Security/cssmerrno.h>
35 #include <Security/debugging.h>
36 #include <Security/cssmclient.h>
37 #include <Security/signclient.h>
38 #include <Security/cryptoclient.h>
39 #include <stdarg.h>
40
41
42 //
43 // Names from the SecurityServerSession class
44 //
45 using namespace SecurityServer;
46 using namespace CssmClient;
47
48
49 //
50 // Test drivers
51 //
52 void integrity();
53 void signWithRSA();
54 void desEncryption();
55 void blobs();
56 void keyBlobs();
57 void databases();
58 void timeouts();
59 void acls();
60 void authAcls();
61 void codeSigning();
62 void keychainAcls();
63 void authorizations();
64 void adhoc();
65
66
67 //
68 // Global constants
69 //
70 extern const CssmData null; // zero pointer, zero length constant data
71 extern const AccessCredentials nullCred; // null credentials
72
73 extern CSSM_GUID ssguid; // a fixed guid
74 extern CssmSubserviceUid ssuid; // a subservice-uid using this guid
75
76
77 #endif //_H_TESTCLIENT