aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 19:07:41 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 19:07:41 +0000
commitb1d80211063fb80094b187d2eb1f790d1956dae3 (patch)
tree2b7e11ccc194d6eeaa44a6770d9b53593520c874
parentSupport wraparound of reliable.[ch] packet IDs. In (diff)
downloadopenvpn-b1d80211063fb80094b187d2eb1f790d1956dae3.tar.xz
Removed old version of extract_x509_field.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3066 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--ssl.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/ssl.c b/ssl.c
index 6aeac1f..bbb998b 100644
--- a/ssl.c
+++ b/ssl.c
@@ -339,44 +339,6 @@ tmp_rsa_cb (SSL * s, int is_export, int keylength)
return (rsa_tmp);
}
-#ifdef USE_OLD_EXTRACT_X509_FIELD
-
-/*
- * Extract a field from an X509 subject name.
- *
- * Example:
- *
- * /C=US/ST=CO/L=Denver/O=ORG/CN=Test-CA/Email=jim@yonan.net
- *
- * The common name is 'Test-CA'
- */
-static void
-extract_x509_field (const char *x509, const char *field_name, char *out, int size)
-{
- char field_buf[256];
- struct buffer x509_buf;
-
- ASSERT (size > 0);
- *out = '\0';
- buf_set_read (&x509_buf, (uint8_t *)x509, strlen (x509));
- while (buf_parse (&x509_buf, '/', field_buf, sizeof (field_buf)))
- {
- struct buffer component_buf;
- char field_name_buf[64];
- char field_value_buf[256];
- buf_set_read (&component_buf, (const uint8_t *) field_buf, strlen (field_buf));
- buf_parse (&component_buf, '=', field_name_buf, sizeof (field_name_buf));
- buf_parse (&component_buf, '=', field_value_buf, sizeof (field_value_buf));
- if (!strcmp (field_name_buf, field_name))
- {
- strncpynt (out, field_value_buf, size);
- break;
- }
- }
-}
-
-#else
-
/*
* Extract a field from an X509 subject name.
*
@@ -422,8 +384,6 @@ extract_x509_field_ssl (X509_NAME *x509, const char *field_name, char *out, int
OPENSSL_free(buf);
}
-#endif
-
static void
setenv_untrusted (struct tls_session *session)
{