aboutsummaryrefslogtreecommitdiffstats
path: root/demos/selfsign.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-02-02 11:08:16 -0500
committerRich Salz <rsalz@openssl.org>2015-02-02 11:08:16 -0500
commit7aa0b022460e1a7bfdf5c70e8cd084d916bac012 (patch)
tree6ae80731638aff40d71fc428520d7dcaec76c60a /demos/selfsign.c
parent5da05a26f21e7c43a156b65b13a9bc968a6c78db (diff)
downloadopenssl-7aa0b022460e1a7bfdf5c70e8cd084d916bac012.tar.gz
Dead code cleanup: crypto/*.c, x509v3, demos
Some of the #if 0 code in demo's was kept, but given helpful #ifdef names, to show more sample code. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'demos/selfsign.c')
-rw-r--r--demos/selfsign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/selfsign.c b/demos/selfsign.c
index 49228b9c16..0cc265c597 100644
--- a/demos/selfsign.c
+++ b/demos/selfsign.c
@@ -136,7 +136,7 @@ int days;
X509_add_ext(x, ex, -1);
X509_EXTENSION_free(ex);
-#if 0
+#ifdef ADD_CA_CONSTRAINT
/* might want something like this too.... */
ex = X509V3_EXT_conf_nid(NULL, NULL, NID_basic_constraints,
"critical,CA:TRUE");
@@ -145,7 +145,7 @@ int days;
X509_EXTENSION_free(ex);
#endif
-#ifdef CUSTOM_EXT
+#ifdef ADD_A_CUSTOM_EXTENSION
/* Maybe even add our own extension based on existing */
{
int nid;