6 #ifndef __MYPROXY_CREDS_H
7 #define __MYPROXY_CREDS_H
13 #define MATCH_CN_ONLY 0
15 struct myproxy_creds {
28 char *trusted_retrievers;
39 struct myproxy_creds *next;
42 typedef struct myproxy_creds myproxy_creds_t;
45 struct myproxy_certs {
49 struct myproxy_certs *next;
52 typedef struct myproxy_certs myproxy_certs_t;
66 int myproxy_creds_store(
const struct myproxy_creds *creds);
78 int myproxy_creds_retrieve(
struct myproxy_creds *creds);
94 int myproxy_creds_retrieve_all(
struct myproxy_creds *creds);
115 int myproxy_admin_retrieve_all(
struct myproxy_creds *creds);
125 int myproxy_creds_delete(
const struct myproxy_creds *creds);
136 int myproxy_creds_lock(
const struct myproxy_creds *creds,
const char *reason);
146 int myproxy_creds_unlock(
const struct myproxy_creds *creds);
157 int myproxy_creds_change_passphrase(
const struct myproxy_creds *creds,
158 const char *new_passphrase);
167 int myproxy_creds_encrypted(
const struct myproxy_creds *creds);
176 int myproxy_creds_verify_passphrase(
const struct myproxy_creds *creds,
177 const char *new_passphrase);
186 int myproxy_creds_exist(
const char *username,
const char *credname);
196 int myproxy_creds_is_owner(
const char *username,
const char *credname,
197 const char *client_name);
204 void myproxy_creds_free(
struct myproxy_creds *certs);
212 void myproxy_creds_free_contents(
struct myproxy_creds *creds);
219 void myproxy_certs_free(
struct myproxy_certs *certs);
227 int myproxy_set_storage_dir(
const char *dir);
235 int myproxy_check_storage_dir();
243 const char *myproxy_get_storage_dir();
252 int myproxy_print_cred_info(myproxy_creds_t *creds, FILE *out);
261 int myproxy_check_cert_dir(
const char cert_dir[]);
269 myproxy_certs_t *myproxy_get_certs(
const char cert_dir[]);
274 int myproxy_check_trusted_certs_dir();
282 int myproxy_install_trusted_cert_files(myproxy_certs_t *);
290 int myproxy_clean_crls();
305 int myproxy_creds_verify(
const struct myproxy_creds *);
318 char *myproxy_creds_path_template();