Skip to content

Commit 1328898

Browse files
author
inoguchi
committed
Remove space between asterisk and variable name
1 parent 4e42a77 commit 1328898

File tree

1 file changed

+22
-22
lines changed
  • src/usr.bin/openssl

1 file changed

+22
-22
lines changed

src/usr.bin/openssl/ts.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ts.c,v 1.18 2022/03/24 11:27:45 inoguchi Exp $ */
1+
/* $OpenBSD: ts.c,v 1.19 2022/03/24 11:40:07 inoguchi Exp $ */
22
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
33
* project 2002.
44
*/
@@ -81,29 +81,29 @@ static CONF *load_config_file(const char *configfile);
8181

8282
/* Query related functions. */
8383
static int query_command(const char *data, char *digest,
84-
const EVP_MD * md, const char *policy, int no_nonce,
84+
const EVP_MD *md, const char *policy, int no_nonce,
8585
int cert, const char *in, const char *out, int text);
8686
static BIO *BIO_open_with_default(const char *file, const char *mode,
87-
FILE * default_fp);
88-
static TS_REQ *create_query(BIO * data_bio, char *digest, const EVP_MD * md,
87+
FILE *default_fp);
88+
static TS_REQ *create_query(BIO *data_bio, char *digest, const EVP_MD *md,
8989
const char *policy, int no_nonce, int cert);
90-
static int create_digest(BIO * input, char *digest,
91-
const EVP_MD * md, unsigned char **md_value);
90+
static int create_digest(BIO *input, char *digest,
91+
const EVP_MD *md, unsigned char **md_value);
9292
static ASN1_INTEGER *create_nonce(int bits);
9393

9494
/* Reply related functions. */
95-
static int reply_command(CONF * conf, char *section,
95+
static int reply_command(CONF *conf, char *section,
9696
char *queryfile, char *passin, char *inkey,
9797
char *signer, char *chain, const char *policy,
9898
char *in, int token_in, char *out, int token_out,
9999
int text);
100-
static TS_RESP *read_PKCS7(BIO * in_bio);
101-
static TS_RESP *create_response(CONF * conf, const char *section,
100+
static TS_RESP *read_PKCS7(BIO *in_bio);
101+
static TS_RESP *create_response(CONF *conf, const char *section,
102102
char *queryfile, char *passin, char *inkey,
103103
char *signer, char *chain, const char *policy);
104-
static ASN1_INTEGER *serial_cb(TS_RESP_CTX * ctx, void *data);
104+
static ASN1_INTEGER *serial_cb(TS_RESP_CTX *ctx, void *data);
105105
static ASN1_INTEGER *next_serial(const char *serialfile);
106-
static int save_ts_serial(const char *serialfile, ASN1_INTEGER * serial);
106+
static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial);
107107

108108
/* Verify related functions. */
109109
static int verify_command(char *data, char *digest, char *queryfile,
@@ -114,7 +114,7 @@ static TS_VERIFY_CTX *create_verify_ctx(char *data, char *digest,
114114
char *ca_path, char *ca_file,
115115
char *untrusted);
116116
static X509_STORE *create_cert_store(char *ca_path, char *ca_file);
117-
static int verify_cb(int ok, X509_STORE_CTX * ctx);
117+
static int verify_cb(int ok, X509_STORE_CTX *ctx);
118118

119119
enum mode {
120120
CMD_NONE, CMD_QUERY, CMD_REPLY, CMD_VERIFY
@@ -524,7 +524,7 @@ load_config_file(const char *configfile)
524524
*/
525525

526526
static int
527-
query_command(const char *data, char *digest, const EVP_MD * md,
527+
query_command(const char *data, char *digest, const EVP_MD *md,
528528
const char *policy, int no_nonce, int cert, const char *in,
529529
const char *out, int text)
530530
{
@@ -580,14 +580,14 @@ query_command(const char *data, char *digest, const EVP_MD * md,
580580
}
581581

582582
static BIO *
583-
BIO_open_with_default(const char *file, const char *mode, FILE * default_fp)
583+
BIO_open_with_default(const char *file, const char *mode, FILE *default_fp)
584584
{
585585
return file == NULL ? BIO_new_fp(default_fp, BIO_NOCLOSE) :
586586
BIO_new_file(file, mode);
587587
}
588588

589589
static TS_REQ *
590-
create_query(BIO * data_bio, char *digest, const EVP_MD * md,
590+
create_query(BIO *data_bio, char *digest, const EVP_MD *md,
591591
const char *policy, int no_nonce, int cert)
592592
{
593593
int ret = 0;
@@ -669,7 +669,7 @@ create_query(BIO * data_bio, char *digest, const EVP_MD * md,
669669
}
670670

671671
static int
672-
create_digest(BIO * input, char *digest, const EVP_MD * md,
672+
create_digest(BIO *input, char *digest, const EVP_MD *md,
673673
unsigned char **md_value)
674674
{
675675
int md_value_len;
@@ -752,7 +752,7 @@ create_nonce(int bits)
752752
*/
753753

754754
static int
755-
reply_command(CONF * conf, char *section, char *queryfile,
755+
reply_command(CONF *conf, char *section, char *queryfile,
756756
char *passin, char *inkey, char *signer, char *chain, const char *policy,
757757
char *in, int token_in, char *out, int token_out, int text)
758758
{
@@ -833,7 +833,7 @@ reply_command(CONF * conf, char *section, char *queryfile,
833833

834834
/* Reads a PKCS7 token and adds default 'granted' status info to it. */
835835
static TS_RESP *
836-
read_PKCS7(BIO * in_bio)
836+
read_PKCS7(BIO *in_bio)
837837
{
838838
int ret = 0;
839839
PKCS7 *token = NULL;
@@ -877,7 +877,7 @@ read_PKCS7(BIO * in_bio)
877877
}
878878

879879
static TS_RESP *
880-
create_response(CONF * conf, const char *section,
880+
create_response(CONF *conf, const char *section,
881881
char *queryfile, char *passin, char *inkey,
882882
char *signer, char *chain, const char *policy)
883883
{
@@ -962,7 +962,7 @@ create_response(CONF * conf, const char *section,
962962
}
963963

964964
static ASN1_INTEGER *
965-
serial_cb(TS_RESP_CTX * ctx, void *data)
965+
serial_cb(TS_RESP_CTX *ctx, void *data)
966966
{
967967
const char *serial_file = (const char *) data;
968968
ASN1_INTEGER *serial = next_serial(serial_file);
@@ -1024,7 +1024,7 @@ next_serial(const char *serialfile)
10241024
}
10251025

10261026
static int
1027-
save_ts_serial(const char *serialfile, ASN1_INTEGER * serial)
1027+
save_ts_serial(const char *serialfile, ASN1_INTEGER *serial)
10281028
{
10291029
int ret = 0;
10301030
BIO *out = NULL;
@@ -1207,7 +1207,7 @@ create_cert_store(char *ca_path, char *ca_file)
12071207
}
12081208

12091209
static int
1210-
verify_cb(int ok, X509_STORE_CTX * ctx)
1210+
verify_cb(int ok, X509_STORE_CTX *ctx)
12111211
{
12121212
/*
12131213
char buf[256];

0 commit comments

Comments
 (0)