aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/openssl.c b/src/openssl.c
index fd392d7..8c02981 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -175,10 +175,6 @@
#define HAVE_EVP_PKEY_ID OPENSSL_PREREQ(1,1,0)
#endif
-#ifndef HAVE_GENERAL_NAME_GET0_VALUE
-#define HAVE_GENERAL_NAME_GET0_VALUE OPENSSL_PREREQ(1,1,0)
-#endif
-
#ifndef HAVE_GENERAL_NAME_SET0_VALUE
#define HAVE_GENERAL_NAME_SET0_VALUE OPENSSL_PREREQ(1,1,0)
#endif
@@ -1379,68 +1375,6 @@ static void *compat_EVP_PKEY_get0(EVP_PKEY *key) {
} /* compat_EVP_PKEY_get0() */
#endif
-#if !HAVE_GENERAL_NAME_GET0_VALUE
-#define GENERAL_NAME_get0_value(...) \
- compat_GENERAL_NAME_get0_value(__VA_ARGS__)
-
-static void *GENERAL_NAME_get0_value(GENERAL_NAME *name, int *type) {
- if (type)
- *type = name->type;
- switch (name->type) {
- case GEN_X400:
- case GEN_EDIPARTY:
- return name->d.other;
- case GEN_OTHERNAME:
- return name->d.otherName;
- case GEN_EMAIL:
- case GEN_DNS:
- case GEN_URI:
- return name->d.ia5;
- case GEN_DIRNAME:
- return name->d.dirn;
- case GEN_IPADD:
- return name->d.ip;
- case GEN_RID:
- return name->d.rid;
- default:
- return NULL;
- }
-} /* compat_GENERAL_NAME_get0_value() */
-#endif
-
-#if !HAVE_GENERAL_NAME_SET0_VALUE
-#define GENERAL_NAME_set0_value(...) \
- compat_GENERAL_NAME_set0_value(__VA_ARGS__)
-
-static void GENERAL_NAME_set0_value(GENERAL_NAME *name, int type, void *value) {
- switch ((name->type = type)) {
- case GEN_X400:
- case GEN_EDIPARTY:
- name->d.other = value;
- break;
- case GEN_OTHERNAME:
- name->d.otherName = value;
- break;
- case GEN_EMAIL:
- case GEN_DNS:
- case GEN_URI:
- name->d.ia5 = value;
- break;
- case GEN_DIRNAME:
- name->d.dirn = value;
- break;
- case GEN_IPADD:
- name->d.ip = value;
- break;
- case GEN_RID:
- name->d.rid = value;
- break;
- default:
- break;
- }
-} /* compat_GENERAL_NAME_set0_value() */
-#endif
-
#if !HAVE_HMAC_CTX_FREE
#define HMAC_CTX_free(ctx) compat_HMAC_CTX_free((ctx))