~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/libs/uti/sge_csp_path.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SGE_CSP_PATH_H
 
2
#define __SGE_CSP_PATH_H
 
3
/*___INFO__MARK_BEGIN__*/
 
4
/*************************************************************************
 
5
 * 
 
6
 *  The Contents of this file are made available subject to the terms of
 
7
 *  the Sun Industry Standards Source License Version 1.2
 
8
 * 
 
9
 *  Sun Microsystems Inc., March, 2001
 
10
 * 
 
11
 * 
 
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
 
18
 * 
 
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.
 
25
 * 
 
26
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
27
 * 
 
28
 *   Copyright: 2001 by Sun Microsystems, Inc.
 
29
 * 
 
30
 *   All Rights Reserved.
 
31
 * 
 
32
 ************************************************************************/
 
33
/*___INFO__MARK_END__*/
 
34
 
 
35
#include "sge_error_class.h"
 
36
#include "sge_env.h"
 
37
#include "cl_data_types.h"
 
38
 
 
39
typedef struct sge_csp_path_class_str sge_csp_path_class_t; 
 
40
 
 
41
struct sge_csp_path_class_str {
 
42
   void *sge_csp_path_handle;
 
43
 
 
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);
 
57
 
 
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);
 
68
};
 
69
 
 
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);
 
72
 
 
73
#endif /* __SGE_CSP_PATH_H */
 
74
 
 
75