1
#ifndef __SGE_CSP_PATH_H
2
#define __SGE_CSP_PATH_H
3
/*___INFO__MARK_BEGIN__*/
4
/*************************************************************************
6
* The Contents of this file are made available subject to the terms of
7
* the Sun Industry Standards Source License Version 1.2
9
* Sun Microsystems Inc., March, 2001
12
* Sun Industry Standards Source License Version 1.2
13
* =================================================
14
* The contents of this file are subject to the Sun Industry Standards
15
* Source License Version 1.2 (the "License"); You may not use this file
16
* except in compliance with the License. You may obtain a copy of the
17
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
19
* Software provided under this License is provided on an "AS IS" basis,
20
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
21
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
22
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
23
* See the License for the specific provisions governing your rights and
24
* obligations concerning the Software.
26
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
28
* Copyright: 2001 by Sun Microsystems, Inc.
30
* All Rights Reserved.
32
************************************************************************/
33
/*___INFO__MARK_END__*/
35
#include "sge_error_class.h"
37
#include "cl_data_types.h"
39
typedef struct sge_csp_path_class_str sge_csp_path_class_t;
41
struct sge_csp_path_class_str {
42
void *sge_csp_path_handle;
44
void (*dprintf)(sge_csp_path_class_t *thiz);
45
const char* (*get_ca_root)(sge_csp_path_class_t *thiz);
46
const char* (*get_ca_local_root)(sge_csp_path_class_t *thiz);
47
const char* (*get_CA_cert_file)(sge_csp_path_class_t *thiz);
48
const char* (*get_CA_key_file)(sge_csp_path_class_t *thiz);
49
const char* (*get_cert_file)(sge_csp_path_class_t *thiz);
50
const char* (*get_key_file)(sge_csp_path_class_t *thiz);
51
const char* (*get_rand_file)(sge_csp_path_class_t *thiz);
52
const char* (*get_reconnect_file)(sge_csp_path_class_t *thiz);
53
const char* (*get_crl_file)(sge_csp_path_class_t *thiz);
54
const char* (*get_password)(sge_csp_path_class_t *thiz);
55
int (*get_refresh_time)(sge_csp_path_class_t *thiz);
56
cl_ssl_verify_func_t (*get_verify_func)(sge_csp_path_class_t *thiz);
58
void (*set_CA_cert_file)(sge_csp_path_class_t *thiz, const char *CA_cert_file);
59
void (*set_CA_key_file)(sge_csp_path_class_t *thiz, const char *CA_key_file);
60
void (*set_cert_file)(sge_csp_path_class_t *thiz, const char *cert_file);
61
void (*set_key_file)(sge_csp_path_class_t *thiz, const char *key_file);
62
void (*set_rand_file)(sge_csp_path_class_t *thiz, const char *rand_file);
63
void (*set_reconnect_file)(sge_csp_path_class_t *thiz, const char *reconnect_file);
64
void (*set_crl_file)(sge_csp_path_class_t *thiz, const char *crl_file);
65
void (*set_password)(sge_csp_path_class_t *thiz, const char *password);
66
void (*set_refresh_time)(sge_csp_path_class_t *thiz, u_long32 refresh_time);
67
void (*set_verify_func)(sge_csp_path_class_t *thiz, cl_ssl_verify_func_t verify_func);
70
sge_csp_path_class_t *sge_csp_path_class_create(sge_env_state_class_t *sge_env, sge_prog_state_class_t *sge_prog, sge_error_class_t *eh);
71
void sge_csp_path_class_destroy(sge_csp_path_class_t **pst);
73
#endif /* __SGE_CSP_PATH_H */