summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/demos/pkcs12/pkwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/demos/pkcs12/pkwrite.c')
-rw-r--r--deps/openssl/openssl/demos/pkcs12/pkwrite.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/deps/openssl/openssl/demos/pkcs12/pkwrite.c b/deps/openssl/openssl/demos/pkcs12/pkwrite.c
index fed773ea76..e14cf8327d 100644
--- a/deps/openssl/openssl/demos/pkcs12/pkwrite.c
+++ b/deps/openssl/openssl/demos/pkcs12/pkwrite.c
@@ -1,4 +1,11 @@
-/* pkwrite.c */
+/*
+ * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -18,9 +25,9 @@ int main(int argc, char **argv)
fprintf(stderr, "Usage: pkwrite infile password name p12file\n");
exit(1);
}
- SSLeay_add_all_algorithms();
+ OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();
- if (!(fp = fopen(argv[1], "r"))) {
+ if ((fp = fopen(argv[1], "r")) == NULL) {
fprintf(stderr, "Error opening file %s\n", argv[1]);
exit(1);
}
@@ -34,7 +41,7 @@ int main(int argc, char **argv)
ERR_print_errors_fp(stderr);
exit(1);
}
- if (!(fp = fopen(argv[4], "wb"))) {
+ if ((fp = fopen(argv[4], "wb")) == NULL) {
fprintf(stderr, "Error opening file %s\n", argv[1]);
ERR_print_errors_fp(stderr);
exit(1);