diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-28 17:41:55 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-28 17:41:55 +0000 |
commit | eb90a483ad85e9dc430610a78362837ad344cac1 (patch) | |
tree | be1d4da1c341e8e570a1f7f445ca67a382ea5e50 /crypto/bio/bio.h | |
parent | 49bc262459b5caf2be68e8ac178df780e6004c1a (diff) |
Add functions to add certs to stacks, used for CA file/path stuff in servers.
Diffstat (limited to 'crypto/bio/bio.h')
-rw-r--r-- | crypto/bio/bio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index 82aaf31719..9206f8d734 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -383,8 +383,10 @@ int BIO_get_ex_new_index(long argl, char *argp, int (*new_func)(), #define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL) #define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL) +/* name is cast to lose const, but might be better to route through a function + so we can do it safely */ #define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ - BIO_CLOSE|BIO_FP_READ,name) + BIO_CLOSE|BIO_FP_READ,(char *)name) #define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ BIO_CLOSE|BIO_FP_WRITE,name) #define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ |