aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeat Bolli <dev@drbeat.li>2016-11-19 00:10:05 +0100
committerRich Salz <rsalz@openssl.org>2017-06-11 16:28:11 -0400
commit7aefa75490991d71e190be38457223704fefff34 (patch)
tree849c91e34fef437a4c804623319a65300b85cc41
parent27b138e9db91bdfa1e3c55b0c3c9b2f02b5c0bf1 (diff)
downloadopenssl-7aefa75490991d71e190be38457223704fefff34.tar.gz
doc/man3: use the documented coding style in the example code
Adjust brace placement, whitespace after keywords, indentation and empty lines after variable declarations according to https://www.openssl.org/policies/codingstyle.html. Indent literal sections by exactly one space. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3580)
-rw-r--r--doc/man3/ASN1_TIME_set.pod1
-rw-r--r--doc/man3/SSL_CTX_set_tmp_dh_callback.pod1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/man3/ASN1_TIME_set.pod b/doc/man3/ASN1_TIME_set.pod
index b9c0dcd22e..95bc06dc38 100644
--- a/doc/man3/ASN1_TIME_set.pod
+++ b/doc/man3/ASN1_TIME_set.pod
@@ -109,6 +109,7 @@ Determine if one time is later or sooner than the current time:
if (!ASN1_TIME_diff(&day, &sec, NULL, to))
/* Invalid time format */
+
if (day > 0 || sec > 0)
printf("Later\n");
else if (day < 0 || sec < 0)
diff --git a/doc/man3/SSL_CTX_set_tmp_dh_callback.pod b/doc/man3/SSL_CTX_set_tmp_dh_callback.pod
index 76c61f8743..a2ac1c0adb 100644
--- a/doc/man3/SSL_CTX_set_tmp_dh_callback.pod
+++ b/doc/man3/SSL_CTX_set_tmp_dh_callback.pod
@@ -93,6 +93,7 @@ Command-line parameter generation:
Code for setting up parameters during server initialization:
SSL_CTX ctx = SSL_CTX_new();
+
DH *dh_2048 = NULL;
FILE *paramfile = fopen("dh_param_2048.pem", "r");