diff options
author | guenther <> | 2014-07-20 02:24:21 +0000 |
---|---|---|
committer | guenther <> | 2014-07-20 02:24:21 +0000 |
commit | a136a215cc085da2472b7cd0f2ad68850f010595 (patch) | |
tree | 62662db57ba8be5f3ed742e66df5da1021436f82 /src | |
parent | ce35eeccb92f21894ebe7ad98b1e207c576034ab (diff) | |
download | openbsd-a136a215cc085da2472b7cd0f2ad68850f010595.tar.gz openbsd-a136a215cc085da2472b7cd0f2ad68850f010595.tar.bz2 openbsd-a136a215cc085da2472b7cd0f2ad68850f010595.zip |
Mark the format string argument to BIO_*printf as not being allowed to be NULL
ok bcook@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 12 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bio/bio.h | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index dc9c9b9e14..6868959599 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.26 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.27 2014/07/20 02:24:21 guenther Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -737,16 +737,18 @@ void BIO_copy_next_retry(BIO *b); | |||
737 | 737 | ||
738 | int | 738 | int |
739 | BIO_printf(BIO *bio, const char *format, ...) | 739 | BIO_printf(BIO *bio, const char *format, ...) |
740 | __attribute__((__format__(__printf__, 2, 3))); | 740 | __attribute__((__format__(__printf__, 2, 3), __nonnull__(2))); |
741 | int | 741 | int |
742 | BIO_vprintf(BIO *bio, const char *format, va_list args) | 742 | BIO_vprintf(BIO *bio, const char *format, va_list args) |
743 | __attribute__((__format__(__printf__, 2, 0))); | 743 | __attribute__((__format__(__printf__, 2, 0), __nonnull__(2))); |
744 | int | 744 | int |
745 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 745 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
746 | __attribute__((deprecated, __format__(__printf__, 3, 4))); | 746 | __attribute__((__deprecated__, __format__(__printf__, 3, 4), |
747 | __nonnull__(3))); | ||
747 | int | 748 | int |
748 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 749 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
749 | __attribute__((deprecated, __format__(__printf__, 3, 0))); | 750 | __attribute__((__deprecated__, __format__(__printf__, 3, 0), |
751 | __nonnull__(3))); | ||
750 | 752 | ||
751 | /* BEGIN ERROR CODES */ | 753 | /* BEGIN ERROR CODES */ |
752 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 754 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h index dc9c9b9e14..6868959599 100644 --- a/src/lib/libssl/src/crypto/bio/bio.h +++ b/src/lib/libssl/src/crypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.26 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.27 2014/07/20 02:24:21 guenther Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -737,16 +737,18 @@ void BIO_copy_next_retry(BIO *b); | |||
737 | 737 | ||
738 | int | 738 | int |
739 | BIO_printf(BIO *bio, const char *format, ...) | 739 | BIO_printf(BIO *bio, const char *format, ...) |
740 | __attribute__((__format__(__printf__, 2, 3))); | 740 | __attribute__((__format__(__printf__, 2, 3), __nonnull__(2))); |
741 | int | 741 | int |
742 | BIO_vprintf(BIO *bio, const char *format, va_list args) | 742 | BIO_vprintf(BIO *bio, const char *format, va_list args) |
743 | __attribute__((__format__(__printf__, 2, 0))); | 743 | __attribute__((__format__(__printf__, 2, 0), __nonnull__(2))); |
744 | int | 744 | int |
745 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 745 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
746 | __attribute__((deprecated, __format__(__printf__, 3, 4))); | 746 | __attribute__((__deprecated__, __format__(__printf__, 3, 4), |
747 | __nonnull__(3))); | ||
747 | int | 748 | int |
748 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 749 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
749 | __attribute__((deprecated, __format__(__printf__, 3, 0))); | 750 | __attribute__((__deprecated__, __format__(__printf__, 3, 0), |
751 | __nonnull__(3))); | ||
750 | 752 | ||
751 | /* BEGIN ERROR CODES */ | 753 | /* BEGIN ERROR CODES */ |
752 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 754 | /* The following lines are auto generated by the script mkerr.pl. Any changes |