#include <openssl/opensslv.h>
#include <openssl/rsa.h>
#include <openssl/ecdsa.h>
#include <openssl/x509.h>
Go to the source code of this file.
|
#define | YH_INTERNAL __attribute__((visibility("hidden"))) |
|
|
int YH_INTERNAL | RSA_set0_key (RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) |
|
void YH_INTERNAL | RSA_get0_key (const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) |
|
void YH_INTERNAL | RSA_get0_factors (const RSA *r, const BIGNUM **p, const BIGNUM **q) |
|
void YH_INTERNAL | RSA_get0_crt_params (const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) |
|
void YH_INTERNAL | ECDSA_SIG_get0 (const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) |
|
int YH_INTERNAL | ECDSA_SIG_set0 (ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) |
|
const YH_INTERNAL | STACK_OF (X509_EXTENSION) *X509_get0_extensions(const X509 *x) |
|
ASN1_OBJECT YH_INTERNAL * | X509_EXTENSION_get_object (X509_EXTENSION *ex) |
|
ASN1_OCTET_STRING YH_INTERNAL * | X509_EXTENSION_get_data (X509_EXTENSION *ex) |
|
◆ YH_INTERNAL
#define YH_INTERNAL __attribute__((visibility("hidden"))) |
◆ ECDSA_SIG_get0()
Definition at line 80 of file openssl-compat.c.
81 {
82 if (pr != NULL) {
83 *pr = sig->r;
84 }
85 if (ps != NULL) {
86 *ps = sig->s;
87 }
88}
◆ ECDSA_SIG_set0()
Definition at line 64 of file openssl-compat.c.
64 {
65 if ((sig->r == NULL &&
r == NULL) || (sig->s == NULL &&
s == NULL)) {
66 return 0;
67 }
68
70 BN_free(sig->r);
72 }
74 BN_free(sig->s);
76 }
77
78 return 1;
79}
◆ RSA_get0_crt_params()
Definition at line 54 of file openssl-compat.c.
55 {
56 if (dmp1 != NULL)
58 if (dmq1 != NULL)
60 if (iqmp != NULL)
62}
◆ RSA_get0_factors()
◆ RSA_get0_key()
Definition at line 37 of file openssl-compat.c.
38 {
39 if (n != NULL)
41 if (e != NULL)
43 if (d != NULL)
45}
◆ RSA_set0_key()
Definition at line 13 of file openssl-compat.c.
13 {
14
15
16
17
18 if ((
r->n == NULL && n == NULL) || (
r->e == NULL && e == NULL))
19 return 0;
20
21 if (n != NULL) {
24 }
25 if (e != NULL) {
28 }
29 if (d != NULL) {
32 }
33
34 return 1;
35}
◆ STACK_OF()
◆ X509_EXTENSION_get_data()
ASN1_OCTET_STRING YH_INTERNAL * X509_EXTENSION_get_data |
( |
X509_EXTENSION * | ex | ) |
|
◆ X509_EXTENSION_get_object()
ASN1_OBJECT YH_INTERNAL * X509_EXTENSION_get_object |
( |
X509_EXTENSION * | ex | ) |
|