diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-14 11:52:49 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-14 11:52:49 +0000 |
commit | 3ae76679c7aeebd455173bb65b720b97c3261a79 (patch) | |
tree | d70e32471e9e5b4de8439eaf50484caaba4c04bb /crypto/pem/pem_info.c | |
parent | e6d0b6eca3d630d2ee306a61782fdfebce146478 (diff) |
Introduce and use function typedef pem_password_cb so that we don't call
those functions without having a parameter list declaration.
(There are various similar cases left ...)
Diffstat (limited to 'crypto/pem/pem_info.c')
-rw-r--r-- | crypto/pem/pem_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c index 7f74bac351..0c2af93360 100644 --- a/crypto/pem/pem_info.c +++ b/crypto/pem/pem_info.c @@ -65,7 +65,7 @@ #include <openssl/pem.h> #ifndef NO_FP_API -STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, int (*cb)()) +STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb) { BIO *b; STACK_OF(X509_INFO) *ret; @@ -82,7 +82,7 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, int ( } #endif -STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, int (*cb)()) +STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb) { X509_INFO *xi=NULL; char *name=NULL,*header=NULL,**pp; @@ -266,7 +266,7 @@ err: /* A TJH addition */ int PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc, - unsigned char *kstr, int klen, int (*cb)()) + unsigned char *kstr, int klen, pem_password_cb *cb) { EVP_CIPHER_CTX ctx; int i,ret=0; |