Skip to content

Commit

Permalink
Merge pull request #23 from mpeck12/master
Browse files Browse the repository at this point in the history
Bug fixes for example client
  • Loading branch information
rpb5bnc committed May 19, 2015
2 parents dbd1512 + 83823d5 commit 4f65115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/client/estclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ static void do_operation ()

int main (int argc, char **argv)
{
char c;
signed char c;
int set_fips_return = 0;
char file_name[MAX_FILENAME_LEN];
BIO *keyin;
Expand Down Expand Up @@ -1054,7 +1054,7 @@ int main (int argc, char **argv)
est_init_logger(EST_LOG_LVL_ERR, &test_logger_stdout);
}

if (!priv_key_file[0] && enroll) {
if (!priv_key_file[0] && enroll && !csr_file[0]) {
printf("\nA private key is required for enrolling. Creating a new RSA key pair since you didn't provide a key using the -x option.");
/*
* Create a private key that will be used for the
Expand All @@ -1072,7 +1072,7 @@ int main (int argc, char **argv)

}

if (enroll) {
if (enroll && !csr_file[0]) {
/* Read in the private key file */
priv_key = read_private_key(priv_key_file);
}
Expand Down

0 comments on commit 4f65115

Please sign in to comment.