Loading...
Searching...
No Matches
proxycertinfo.h
Go to the documentation of this file.
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef HEADER_PROXYCERTINFO_H
#define HEADER_PROXYCERTINFO_H
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
#endif
#include "proxypolicy.h"
#include <openssl/asn1.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PROXYCERTINFO_OLD_OID "1.3.6.1.4.1.3536.1.222"
#define PROXYCERTINFO_OID "1.3.6.1.5.5.7.1.14"
#define PROXYCERTINFO_SN "PROXYCERTINFO"
#define PROXYCERTINFO_LN "Proxy Certificate Info Extension"
#define PROXYCERTINFO_OLD_SN "OLD_PROXYCERTINFO"
#define PROXYCERTINFO_OLD_LN "Proxy Certificate Info Extension (old OID)"
/*
* Used for error checking
*/
#define ASN1_F_PROXYCERTINFO_NEW 430
#define ASN1_F_D2I_PROXYCERTINFO 431
#ifndef GLOBUS_DEPRECATED
#define GLOBUS_DEPRECATED_IN_PROXYCERTINFO_H
#if __GNUC__
# define GLOBUS_DEPRECATED(func) func __attribute__((deprecated))
#elif defined(_MSC_VER)
# define GLOBUS_DEPRECATED(func) __declspec(deprecated) func
#else
# define GLOBUS_DEPRECATED(func) func
#endif
#endif
/*
* The PROXYCERTINFO functions are deprecated, as OpenSSL has provided
* its own data structure since 0.9.8.
*/
/* data structures */
struct PROXYCERTINFO_st
{
ASN1_INTEGER * path_length; /* [ OPTIONAL ] */
PROXYPOLICY * policy;
};
typedef struct PROXYCERTINFO_st PROXYCERTINFO;
#ifdef DECLARE_STACK_OF
DECLARE_STACK_OF(PROXYCERTINFO)
#endif
DECLARE_ASN1_FUNCTIONS(PROXYCERTINFO)
/* macros */
#define d2i_PROXYCERTINFO_bio(bp, pci) \
ASN1_d2i_bio_of(PROXYCERTINFO, PROXYCERTINFO_new, d2i_PROXYCERTINFO, bp, pci)
#define i2d_PROXYCERTINFO_bio(bp, pci) \
ASN1_i2d_bio_of(PROXYCERTINFO, i2d_PROXYCERTINFO, bp, pci)
/* functions */
#if OPENSSL_VERSION_NUMBER < 0x10000000L
ASN1_METHOD * PROXYCERTINFO_asn1_meth();
#endif
GLOBUS_DEPRECATED(
PROXYCERTINFO * PROXYCERTINFO_dup(
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
const
#endif
PROXYCERTINFO * cert_info));
GLOBUS_DEPRECATED(int PROXYCERTINFO_cmp(
const PROXYCERTINFO * a,
const PROXYCERTINFO * b));
GLOBUS_DEPRECATED(int PROXYCERTINFO_print(
BIO * bp,
PROXYCERTINFO * cert_info));
GLOBUS_DEPRECATED(int PROXYCERTINFO_print_fp(
FILE * fp,
PROXYCERTINFO * cert_info));
GLOBUS_DEPRECATED(int PROXYCERTINFO_set_policy(
PROXYCERTINFO * cert_info,
PROXYPOLICY * policy));
GLOBUS_DEPRECATED(PROXYPOLICY * PROXYCERTINFO_get_policy(
PROXYCERTINFO * cert_info));
GLOBUS_DEPRECATED(int PROXYCERTINFO_set_path_length(
PROXYCERTINFO * cert_info,
long path_length));
GLOBUS_DEPRECATED(long PROXYCERTINFO_get_path_length(
PROXYCERTINFO * cert_info));
GLOBUS_DEPRECATED(X509V3_EXT_METHOD * PROXYCERTINFO_x509v3_ext_meth());
X509V3_EXT_METHOD * PROXYCERTINFO_OLD_x509v3_ext_meth();
GLOBUS_DEPRECATED(STACK_OF(CONF_VALUE) * i2v_PROXYCERTINFO(
struct v3_ext_method * method,
PROXYCERTINFO * ext,
STACK_OF(CONF_VALUE) * extlist));
#ifdef __cplusplus
}
#endif
#ifdef GLOBUS_DEPRECATED_IN_PROXYCERTINFO_H
# ifdef GLOBUS_DEPRECATED
# undef GLOBUS_DEPRECATED
# endif
# undef GLOBUS_DEPRECATED_IN_PROXYCERTINFO_H
#endif
#endif /* HEADER_PROXYCERTINFO_H */
proxypolicy.h
Proxy Policy.
PROXYCERTINFO_st
Definition proxycertinfo.h:125