diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-05-15 18:32:08 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-05-15 18:32:08 +0000 |
commit | d6dda126b7921c1067cdc49845e4656c53a5c96b (patch) | |
tree | 56add0d2b707f7697918103d858a5f33eac8f050 /crypto/buffer | |
parent | 7771b6c5b5cfeaab5eb0dca6f9ddb1dae0389f2d (diff) |
Make some more API types opaquely available from ossl_typ.h, meaning the
corresponding headers are only required for API functions or structure
details. This now includes the bignum types and BUF_MEM. Subsequent commits
will remove various dependencies on bn.h and buffer.h and update the
makefile dependencies.
Diffstat (limited to 'crypto/buffer')
-rw-r--r-- | crypto/buffer/buffer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h index 7f557c21c3..4b8eb7119d 100644 --- a/crypto/buffer/buffer.h +++ b/crypto/buffer/buffer.h @@ -59,6 +59,8 @@ #ifndef HEADER_BUFFER_H #define HEADER_BUFFER_H +#include <openssl/ossl_typ.h> + #ifdef __cplusplus extern "C" { #endif @@ -69,12 +71,15 @@ extern "C" { #include <sys/types.h> #endif -typedef struct buf_mem_st +/* Already declared in ossl_typ.h */ +/* typedef struct buf_mem_st BUF_MEM; */ + +struct buf_mem_st { int length; /* current number of bytes */ char *data; int max; /* size of buffer */ - } BUF_MEM; + }; BUF_MEM *BUF_MEM_new(void); void BUF_MEM_free(BUF_MEM *a); |