[rt-commit] r149 - /redwax-tool/trunk/redwax_openssl.c
rt-commit at redwax.eu
rt-commit at redwax.eu
Tue Aug 22 22:44:25 CEST 2023
Author: minfrin at redwax.eu
Date: Tue Aug 22 22:44:24 2023
New Revision: 149
Log:
Remove tabs.
Modified:
redwax-tool/trunk/redwax_openssl.c
Modified: redwax-tool/trunk/redwax_openssl.c
==============================================================================
--- redwax-tool/trunk/redwax_openssl.c (original)
+++ redwax-tool/trunk/redwax_openssl.c Tue Aug 22 22:44:24 2023
@@ -1695,14 +1695,14 @@
X509_STORE_CTX_set0_crls(ctx, crl_index);
if (r->verify_date) {
- time_t now_t;
- struct tm now_tm;
- ASN1_TIME *now = ASN1_TIME_new();
-
- ASN1_TIME_set_string(now, r->verify_date);
- ASN1_TIME_normalize(now);
- ASN1_TIME_to_tm(now, &now_tm);
- now_t = mktime(&now_tm);
+ time_t now_t;
+ struct tm now_tm;
+ ASN1_TIME *now = ASN1_TIME_new();
+
+ ASN1_TIME_set_string(now, r->verify_date);
+ ASN1_TIME_normalize(now);
+ ASN1_TIME_to_tm(now, &now_tm);
+ now_t = mktime(&now_tm);
X509_STORE_CTX_set_time(ctx, 0, now_t);
}
@@ -2273,7 +2273,7 @@
}
if (r->param_out) {
- PEM_write_bio_Parameters(bio, pkey);
+ PEM_write_bio_Parameters(bio, pkey);
}
if (!PEM_write_bio_PKCS8_PRIV_KEY_INFO(bio, p8inf)) {
@@ -2326,7 +2326,7 @@
}
if (r->param_out) {
- PEM_write_bio_Parameters(bio, pkey);
+ PEM_write_bio_Parameters(bio, pkey);
}
if (!PEM_write_bio_PKCS8_PRIV_KEY_INFO(bio, p8inf)) {
@@ -4459,37 +4459,37 @@
}
if (r->verify_date) {
- ASN1_TIME *now = ASN1_TIME_new();
- ASN1_TIME_set_string(now, r->verify_date);
- ASN1_TIME_normalize(now);
+ ASN1_TIME *now = ASN1_TIME_new();
+ ASN1_TIME_set_string(now, r->verify_date);
+ ASN1_TIME_normalize(now);
}
if (before) {
- int pday, psec;
+ int pday, psec;
ASN1_TIME_diff(&pday, &psec, before, now);
if (pday < 0 || psec < 0) {
- valid_error = apr_psprintf(m->pool, "Valid in %d day(s) %d second(s)", -pday, -psec);
+ valid_error = apr_psprintf(m->pool, "Valid in %d day(s) %d second(s)", -pday, -psec);
}
else {
- valid_status = apr_psprintf(m->pool, "Valid for %d day(s) %d second(s)", pday, psec);
+ valid_status = apr_psprintf(m->pool, "Valid for %d day(s) %d second(s)", pday, psec);
}
}
if (after && !valid_error) {
- int pday, psec;
+ int pday, psec;
ASN1_TIME_diff(&pday, &psec, now, after);
if (pday < 0 || psec < 0) {
- valid_error = apr_psprintf(m->pool, "Expired %d day(s) %d second(s) ago", -pday, -psec);
+ valid_error = apr_psprintf(m->pool, "Expired %d day(s) %d second(s) ago", -pday, -psec);
}
else if (pday * 86400 + psec < r->threshold) {
- valid_warning = apr_psprintf(m->pool, "Expires in %d day(s) %d second(s)", pday, psec);
+ valid_warning = apr_psprintf(m->pool, "Expires in %d day(s) %d second(s)", pday, psec);
}
else {
- valid_status = apr_psprintf(m->pool, "Expires in %d day(s) %d second(s)", pday, psec);
+ valid_status = apr_psprintf(m->pool, "Expires in %d day(s) %d second(s)", pday, psec);
}
}
@@ -4812,15 +4812,15 @@
if (!r->quiet && !r->complete) {
- BIO *bio_err;
- bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
-
- BIO_printf(bio_err, "search-filter: ");
- X509_NAME_print_ex(bio_err,
+ BIO *bio_err;
+ bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
+
+ BIO_printf(bio_err, "search-filter: ");
+ X509_NAME_print_ex(bio_err,
X509_get_subject_name(x),
0, XN_FLAG_RFC2253);
- BIO_printf(bio_err, "\n");
- BIO_free(bio_err);
+ BIO_printf(bio_err, "\n");
+ BIO_free(bio_err);
}
More information about the rt-commit
mailing list