#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/x509v3.h>
#include <memory>
#include "XrdSut/XrdSutRndm.hh"
#include "XrdCrypto/XrdCryptogsiX509Chain.hh"
#include "XrdCrypto/XrdCryptosslAux.hh"
#include "XrdCrypto/XrdCryptosslRSA.hh"
#include "XrdCrypto/XrdCryptosslTrace.hh"
#include "XrdCrypto/XrdCryptosslX509.hh"
#include "XrdCrypto/XrdCryptosslX509Req.hh"
Go to the source code of this file.
◆ BIO_GET_STRING
#define BIO_GET_STRING |
( |
|
b, |
|
|
|
str |
|
) |
| |
Value: BUF_MEM *bptr; \
BIO_get_mem_ptr(b, &bptr); \
if (bptr) { \
char *s = new char[bptr->length+1]; \
memcpy(s, bptr->data, bptr->length); \
s[bptr->length] = '\0'; \
str = s; \
delete [] s; \
} else { \
PRINT("ERROR: GET_STRING: BIO internal buffer undefined!"); \
} \
if (b) BIO_free(b);
Definition at line 109 of file XrdCryptosslgsiAux.cc.
◆ BIO_PRINT
#define BIO_PRINT |
( |
|
b, |
|
|
|
c |
|
) |
| |
Value: BUF_MEM *bptr; \
BIO_get_mem_ptr(b, &bptr); \
if (bptr) { \
char *s = new char[bptr->length+1]; \
memcpy(s, bptr->data, bptr->length); \
s[bptr->length] = '\0'; \
PRINT(c << s); \
delete [] s; \
} else { \
PRINT("ERROR: "<<c<<" BIO internal buffer undefined!"); \
} \
if (b) BIO_free(b);
Definition at line 95 of file XrdCryptosslgsiAux.cc.
◆ KEY_USAGE_OID
#define KEY_USAGE_OID "2.5.29.15" |
◆ SUBJ_ALT_NAME_OID
#define SUBJ_ALT_NAME_OID "2.5.29.17" |
◆ XRDGSI_CONST
◆ XRDGSI_VOMS_ACSEQ_OID
#define XRDGSI_VOMS_ACSEQ_OID "1.3.6.1.4.1.8005.100.100.5" |
◆ XRDGSI_VOMS_ATCAP_OID
#define XRDGSI_VOMS_ATCAP_OID "1.3.6.1.4.1.8005.100.100.4" |
◆ EVP_PKEY_ptr
using EVP_PKEY_ptr = std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> |
◆ PROXY_CERT_INFO_EXTENSION_ptr
◆ STACK_OF_X509_EXTENSION_ptr
◆ X509_EXTENSION_ptr
using X509_EXTENSION_ptr = std::unique_ptr<X509_EXTENSION, decltype(&X509_EXTENSION_free)> |
◆ X509_NAME_ptr
using X509_NAME_ptr = std::unique_ptr<X509_NAME, decltype(&X509_NAME_free)> |
◆ X509_ptr
using X509_ptr = std::unique_ptr<X509, decltype(&X509_free)> |
◆ X509_REQ_ptr
using X509_REQ_ptr = std::unique_ptr<X509_REQ, decltype(&X509_REQ_free)> |
◆ EVP_PKEY_get0_RSA()
static RSA* EVP_PKEY_get0_RSA |
( |
EVP_PKEY * |
pkey | ) |
|
|
static |
◆ stackOfX509ExtensionDelete()
static void stackOfX509ExtensionDelete |
( |
STACK_OF(X509_EXTENSION) * |
ske | ) |
|
|
static |
Definition at line 60 of file XrdCryptosslgsiAux.cc.
61 #if OPENSSL_VERSION_NUMBER >= 0x10000000L
62 sk_X509_EXTENSION_pop_free(ske, X509_EXTENSION_free);
64 sk_pop_free(ske, X509_EXTENSION_free);
◆ XrdCheckRSA()
static int XrdCheckRSA |
( |
EVP_PKEY * |
pkey | ) |
|
|
static |
Definition at line 139 of file XrdCryptosslgsiAux.cc.
141 #if OPENSSL_VERSION_NUMBER < 0x10101000L
144 rc = RSA_check_key(rsa);
148 EVP_PKEY_CTX *ckctx = EVP_PKEY_CTX_new(pkey, 0);
149 rc = EVP_PKEY_check(ckctx);
150 EVP_PKEY_CTX_free(ckctx);
static RSA * EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
References EVP_PKEY_get0_RSA().
◆ XrdCryptosslX509Asn1PrintInfo()
int XrdCryptosslX509Asn1PrintInfo |
( |
int |
tag, |
|
|
int |
xclass, |
|
|
int |
constructed, |
|
|
int |
indent |
|
) |
| |
◆ XrdCryptosslX509FillUnknownExt()
int XrdCryptosslX509FillUnknownExt |
( |
XRDGSI_CONST unsigned char ** |
pp, |
|
|
long |
length |
|
) |
| |
◆ XrdCryptosslX509FillVOMS()