diff options
| author | tedu <> | 2014-04-17 02:50:32 +0000 |
|---|---|---|
| committer | tedu <> | 2014-04-17 02:50:32 +0000 |
| commit | 7819cc1d1d0c28fa641239e19dfce513be4e0610 (patch) | |
| tree | 26eec6a42e48b080c9d14092b44703c9ee3080a6 | |
| parent | 9a1c8100cb8cb117eddb7af93d839f1158fba375 (diff) | |
| download | openbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.tar.gz openbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.tar.bz2 openbsd-7819cc1d1d0c28fa641239e19dfce513be4e0610.zip | |
tag some functions with bounded. idea and ok djm
| -rw-r--r-- | src/lib/libcrypto/bio/bio.h | 9 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bio.h | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index b64fd44b12..ee0afb1553 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
| @@ -629,9 +629,12 @@ BIO * BIO_new(BIO_METHOD *type); | |||
| 629 | int BIO_set(BIO *a, BIO_METHOD *type); | 629 | int BIO_set(BIO *a, BIO_METHOD *type); |
| 630 | int BIO_free(BIO *a); | 630 | int BIO_free(BIO *a); |
| 631 | void BIO_vfree(BIO *a); | 631 | void BIO_vfree(BIO *a); |
| 632 | int BIO_read(BIO *b, void *data, int len); | 632 | int BIO_read(BIO *b, void *data, int len) |
| 633 | int BIO_gets(BIO *bp, char *buf, int size); | 633 | __attribute__((__bounded__(__buffer__,2,3))); |
| 634 | int BIO_write(BIO *b, const void *data, int len); | 634 | int BIO_gets(BIO *bp, char *buf, int size) |
| 635 | __attribute__((__bounded__ (__string__,2,3))); | ||
| 636 | int BIO_write(BIO *b, const void *data, int len) | ||
| 637 | __attribute__((__bounded__(__buffer__,2,3))); | ||
| 635 | int BIO_puts(BIO *bp, const char *buf); | 638 | int BIO_puts(BIO *bp, const char *buf); |
| 636 | int BIO_indent(BIO *b, int indent, int max); | 639 | int BIO_indent(BIO *b, int indent, int max); |
| 637 | long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); | 640 | long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); |
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h index b64fd44b12..ee0afb1553 100644 --- a/src/lib/libssl/src/crypto/bio/bio.h +++ b/src/lib/libssl/src/crypto/bio/bio.h | |||
| @@ -629,9 +629,12 @@ BIO * BIO_new(BIO_METHOD *type); | |||
| 629 | int BIO_set(BIO *a, BIO_METHOD *type); | 629 | int BIO_set(BIO *a, BIO_METHOD *type); |
| 630 | int BIO_free(BIO *a); | 630 | int BIO_free(BIO *a); |
| 631 | void BIO_vfree(BIO *a); | 631 | void BIO_vfree(BIO *a); |
| 632 | int BIO_read(BIO *b, void *data, int len); | 632 | int BIO_read(BIO *b, void *data, int len) |
| 633 | int BIO_gets(BIO *bp, char *buf, int size); | 633 | __attribute__((__bounded__(__buffer__,2,3))); |
| 634 | int BIO_write(BIO *b, const void *data, int len); | 634 | int BIO_gets(BIO *bp, char *buf, int size) |
| 635 | __attribute__((__bounded__ (__string__,2,3))); | ||
| 636 | int BIO_write(BIO *b, const void *data, int len) | ||
| 637 | __attribute__((__bounded__(__buffer__,2,3))); | ||
| 635 | int BIO_puts(BIO *bp, const char *buf); | 638 | int BIO_puts(BIO *bp, const char *buf); |
| 636 | int BIO_indent(BIO *b, int indent, int max); | 639 | int BIO_indent(BIO *b, int indent, int max); |
| 637 | long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); | 640 | long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); |
