1/*
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
3 *
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
8 * using this file.
9 *
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
16 */
17
18
19/*
20 * Copyright (c) 2004 Apple Computer, Inc. All Rights Reserved.
21 *
22 * @APPLE_LICENSE_HEADER_START@
23 *
24 * This file contains Original Code and/or Modifications of Original Code
25 * as defined in and that are subject to the Apple Public Source License
26 * Version 2.0 (the 'License'). You may not use this file except in
27 * compliance with the License. Please obtain a copy of the License at
28 * http://www.opensource.apple.com/apsl/ and read it before using this
29 * file.
30 *
31 * The Original Code and all software distributed under the License are
32 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
33 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
34 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
35 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
36 * Please see the License for the specific language governing rights and
37 * limitations under the License.
38 *
39 * @APPLE_LICENSE_HEADER_END@
40 */
41//
42// AppleDotMacTP.h - TP module for .mac cert acquisition
43//
44#ifndef _APPLE_DOT_MAC_TP_
45#define _APPLE_DOT_MAC_TP_
46
47#include <security_cdsa_plugin/cssmplugin.h>
48#include <security_cdsa_plugin/pluginsession.h>
49
50class AppleDotMacTP : public CssmPlugin
51{
52public:
53    AppleDotMacTP();
54    ~AppleDotMacTP();
55
56    PluginSession *makeSession(
57			CSSM_MODULE_HANDLE handle,
58			const CSSM_VERSION &version,
59			uint32 subserviceId,
60			CSSM_SERVICE_TYPE subserviceType,
61			CSSM_ATTACH_FLAGS attachFlags,
62			const CSSM_UPCALLS &upcalls);
63private:
64    // Don't copy AppleDotMacTP
65    AppleDotMacTP(const AppleDotMacTP&);
66    void operator=(const AppleDotMacTP&);
67};
68
69
70#endif /* _APPLE_DOT_MAC_TP_ */
71