XRootD
XrdCryptosslX509.cc File Reference
#include "XrdCrypto/XrdCryptosslRSA.hh"
#include "XrdCrypto/XrdCryptosslX509.hh"
#include "XrdCrypto/XrdCryptosslAux.hh"
#include "XrdCrypto/XrdCryptosslTrace.hh"
#include <openssl/pem.h>
#include <cerrno>
#include <memory>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+ Include dependency graph for XrdCryptosslX509.cc:

Go to the source code of this file.

Macros

#define BIO_PRINT(b, c)
 

Macro Definition Documentation

◆ BIO_PRINT

#define BIO_PRINT (   b,
 
)
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 49 of file XrdCryptosslX509.cc.