#include <openssl/x509.h>
#include <time.h>
#include "newformat.h"
Go to the source code of this file.
Data Structures | |
struct | data |
User's characteristics: can be repeated. More... | |
struct | attribute |
struct | contactdata |
struct | voms |
struct | vomsdata |
Defines | |
#define | TYPE_NODATA 0 /*!< no data */ |
#define | TYPE_STD 1 /*!< group, role, capability triplet */ |
#define | TYPE_CUSTOM 2 /*!< result of an S command */ |
#define | RECURSE_CHAIN 0 |
#define | RECURSE_NONE 1 |
#define | VERIFY_FULL 0xffffffff |
#define | VERIFY_NONE 0x00000000 |
#define | VERIFY_DATE 0x00000001 |
#define | VERIFY_NOTARGET 0x00000002 |
#define | VERIFY_KEY 0x00000004 |
#define | VERIFY_SIGN 0x00000008 |
#define | VERIFY_ORDER 0x00000010 |
#define | VERIFY_ID 0x00000020 |
#define | VERIFY_CERTLIST 0x00000040 |
#define | VERR_NONE 0 |
Error codes. | |
#define | VERR_NOSOCKET 1 /*!< Socket problem*/ |
#define | VERR_NOIDENT 2 /*!< Cannot identify itself (certificate problem) */ |
#define | VERR_COMM 3 /*!< Server problem */ |
#define | VERR_PARAM 4 /*!< Wrong parameters*/ |
#define | VERR_NOEXT 5 /*!< VOMS extension missing */ |
#define | VERR_NOINIT 6 /*!< Initialization error */ |
#define | VERR_TIME 7 /*!< Error in time checking */ |
#define | VERR_IDCHECK |
#define | VERR_EXTRAINFO 9 /*!< VO name and URI missing */ |
#define | VERR_FORMAT 10 /*!< Wrong data format */ |
#define | VERR_NODATA 11 /*!< Empty extension */ |
#define | VERR_PARSE 12 /*!< Parse error */ |
#define | VERR_DIR 13 /*!< Directory error */ |
#define | VERR_SIGN 14 /*!< Signature error */ |
#define | VERR_SERVER 15 /*!< Unidentifiable VOMS server */ |
#define | VERR_MEM 16 /*!< Memory problems */ |
#define | VERR_VERIFY 17 /*!< Generic verification error*/ |
#define | VERR_TYPE 18 /*!< Returned data of unknown type */ |
#define | VERR_ORDER 19 /*!< Ordering different than required */ |
#define | VERR_SERVERCODE 20 /*!< Error from the server */ |
#define | VERR_NOTAVAIL 21 /*!< Method not available */ |
Typedefs | |
typedef void * | gss_cred_id_t |
typedef void * | gss_ctx_id_t |
Functions | |
contactdata ** | VOMS_FindByAlias (struct vomsdata *vd, char *alias, char *system, char *user, int *error) |
contactdata ** | VOMS_FindByVO (struct vomsdata *vd, char *vo, char *system, char *user, int *error) |
void | VOMS_DeleteContacts (struct contactdata **list) |
vomsdata * | VOMS_Init (char *voms, char *cert) |
voms * | VOMS_Copy (struct voms *v, int *error) |
vomsdata * | VOMS_CopyAll (struct vomsdata *vd, int *error) |
void | VOMS_Delete (struct voms *v) |
int | VOMS_AddTarget (struct vomsdata *vd, char *target, int *error) |
void | VOMS_FreeTargets (struct vomsdata *vd, int *error) |
char * | VOMS_ListTargets (struct vomsdata *vd, int *error) |
int | VOMS_SetVerificationType (int type, struct vomsdata *vd, int *error) |
int | VOMS_SetLifetime (int length, struct vomsdata *vd, int *error) |
void | VOMS_Destroy (struct vomsdata *vd) |
int | VOMS_ResetOrder (struct vomsdata *vd, int *error) |
int | VOMS_Ordering (char *order, struct vomsdata *vd, int *error) |
int | VOMS_Contact (char *hostname, int port, char *servsubject, char *command, struct vomsdata *vd, int *error) |
int | VOMS_ContactRaw (char *hostname, int port, char *servsubject, char *command, void **data, int *datalen, int *version, struct vomsdata *vd, int *error) |
int | VOMS_Retrieve (X509 *cert, STACK_OF(X509)*chain, int how, struct vomsdata *vd, int *error) |
int | VOMS_Import (char *buffer, int buflen, struct vomsdata *vd, int *error) |
int | VOMS_Export (char **buffer, int *buflen, struct vomsdata *vd, int *error) |
voms * | VOMS_DefaultData (struct vomsdata *vd, int *error) |
char * | VOMS_ErrorMessage (struct vomsdata *vd, int error, char *buffer, int len) |
int | VOMS_RetrieveEXT (X509_EXTENSION *ext, struct vomsdata *vd, int *error) |
int | VOMS_RetrieveFromCred (gss_cred_id_t cred, int how, struct vomsdata *vd, int *error) |
int | VOMS_RetrieveFromFile (FILE *file, int how, struct vomsdata *vd, int *error) |
int | VOMS_RetrieveFromCtx (gss_ctx_id_t ctx, int how, struct vomsdata *vd, int *error) |
int | VOMS_RetrieveFromProxy (int how, struct vomsdata *vd, int *error) |
int | VOMS_GetAttributeSourcesNumber (struct voms *v, struct vomsdata *vd, int *error) |
int | VOMS_GetAttributeSourceHandle (struct voms *v, int num, struct vomsdata *vd, int *error) |
const char * | VOMS_GetAttributeGrantor (struct voms *v, int handle, struct vomsdata *vd, int *error) |
int | VOMS_GetAttributesNumber (struct voms *v, int handle, struct vomsdata *vd, int *error) |
int | VOMS_GetAttribute (struct voms *v, int handle, int num, struct attribute *at, struct vomsdata *vd, int *error) |
vomsdata * | VOMS_Duplicate (struct vomsdata *vd) |
AC * | VOMS_GetAC (struct voms *v) |
int | getMajorVersionNumber (void) |
int | getMinorVersionNumber (void) |
int | getPatchVersionNumber (void) |
int | VOMS_SetVerificationTime (time_t verificationtime, struct vomsdata *vd, int *error) |
char ** | VOMS_GetTargetsList (struct voms *v, struct vomsdata *vd, int *error) |
void | VOMS_FreeTargetsList (char **) |
int | VOMS_SetTimeout (int t, struct vomsdata *vd, int *error) |
|
Definition at line 93 of file voms_apic.h. |
|
Definition at line 94 of file voms_apic.h. |
|
result of an S command Definition at line 64 of file voms_apic.h. |
|
no data Definition at line 60 of file voms_apic.h. |
|
group, role, capability triplet Definition at line 62 of file voms_apic.h. |
|
Definition at line 104 of file voms_apic.h. |
|
Definition at line 98 of file voms_apic.h. |
|
Definition at line 96 of file voms_apic.h. |
|
Definition at line 103 of file voms_apic.h. |
|
Definition at line 100 of file voms_apic.h. |
|
Definition at line 97 of file voms_apic.h. |
|
Definition at line 99 of file voms_apic.h. |
|
Definition at line 102 of file voms_apic.h. |
|
Definition at line 101 of file voms_apic.h. |
|
Server problem Definition at line 113 of file voms_apic.h. |
|
Directory error Definition at line 134 of file voms_apic.h. |
|
VO name and URI missing Definition at line 126 of file voms_apic.h. |
|
Wrong data format Definition at line 128 of file voms_apic.h. |
|
Value: 8 Definition at line 123 of file voms_apic.h. |
|
Memory problems Definition at line 140 of file voms_apic.h. |
|
Empty extension Definition at line 130 of file voms_apic.h. |
|
VOMS extension missing Definition at line 117 of file voms_apic.h. |
|
Cannot identify itself (certificate problem) Definition at line 111 of file voms_apic.h. |
|
Initialization error Definition at line 119 of file voms_apic.h. |
|
Error codes.
Definition at line 108 of file voms_apic.h. |
|
Socket problem Definition at line 109 of file voms_apic.h. |
|
Method not available Definition at line 150 of file voms_apic.h. |
|
Ordering different than required Definition at line 146 of file voms_apic.h. |
|
Wrong parameters Definition at line 115 of file voms_apic.h. |
|
Parse error Definition at line 132 of file voms_apic.h. |
|
Unidentifiable VOMS server Definition at line 138 of file voms_apic.h. |
|
Error from the server Definition at line 148 of file voms_apic.h. |
|
Signature error Definition at line 136 of file voms_apic.h. |
|
Error in time checking Definition at line 121 of file voms_apic.h. |
|
Returned data of unknown type Definition at line 144 of file voms_apic.h. |
|
Generic verification error Definition at line 142 of file voms_apic.h. |
|
Definition at line 20 of file voms_apic.h. |
|
Definition at line 21 of file voms_apic.h. |
|
|
|
|
|
|
|
Adds a target to the AC.
|
|
Contacts a VOMS server to get a certificate It is the equivalent of the voms_proxy_init command, but without the --include functionality.
|
|
The same as VOMS_Contact, except that instead of starting the verification process, the data is returned as is in the
|
|
Copies a voms structure. N.B: This is the ONLY way to correctly initialize a voms structure as a copy of another voms structure.
|
|
Copies a vomsdata structure. N.B: This is the ONLY way to correctly initialize a vomsdata structure as a copy of another vomsdata structure.
|
|
Gets the default attributes from a vomsdata structure.
|
|
Deletes a voms structure
|
|
Frees a contactdata vector.
|
|
Destroys a proper vomsdata structure /param vd The structure to deallocate. |
|
|
|
Gets a textual description of the error.
|
|
Converts data into a test format
|
|
Gets a list of VOMS servers which share an alias.
|
|
Gets a list of VOMS servers which serve the same VO.
|
|
Delete the targets from the AC.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Converts data from the format used for inclusion into a certificate to the internal format The function does verify the data.
|
|
Initializes a vomsdata structure for use by the other functions. N.B: This is the ONLY way to correctly initialize a vomsdata structure. It is also forbidden to directly take the sizeof() of this structure.
If cert_dir is empty, the value of the environment variable X509_CERT_DIR is taken
|
|
|
|
Further specified the order of the returned attributes. Please do note that calls are cumulative unless VOMS_ResetOrder() is called.
|
|
Unsets the return order of the attributes.
|
|
Extracts the VOMS extension from an X.509 certificate. The function doesn't check the validity of the certificates, but it does check the content of the user data.
|
|
Gets VOMS information from the given extension
|
|
Gets VOMS information from the given globus credential
|
|
Gets VOMS information from the given globus context
|
|
Gets VOMS information from the given globus credential
|
|
Gets VOMS information from an existing globus proxy
|
|
Set requested lifetime for VOMS_Contact() calls.
|
|
|
|
|
|
|