#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cerrno>
#include <memory>
#include "XrdCrypto/XrdCryptosslRSA.hh"
#include "XrdCrypto/XrdCryptosslX509.hh"
#include "XrdCrypto/XrdCryptosslAux.hh"
#include "XrdCrypto/XrdCryptosslTrace.hh"
#include <openssl/pem.h>
Go to the source code of this file.
◆ 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 47 of file XrdCryptosslX509.cc.
50 { \
51 char *s = new char[bptr->length+1]; \
52 memcpy(s, bptr->data, bptr->length); \
53 s[bptr->length] = '\0'; \
54 PRINT(c << s); \
55 delete [] s; \
56 } else { \
57 PRINT("ERROR: "<<c<<" BIO internal buffer undefined!"); \
58 } \
59 if (b) BIO_free(b);