summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorbeck <>2014-05-22 15:37:59 +0000
committerbeck <>2014-05-22 15:37:59 +0000
commitcd9711b8bc95d797c6ad15890120d161cedeb3c2 (patch)
tree964b919249c7b5858077445bda946c2650f93059 /src/lib
parent47088465eae4e17bc85d800893191f6ab7699c3d (diff)
downloadopenbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.tar.gz
openbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.tar.bz2
openbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.zip
mark BIO_snprintf as deprecated, so warnings will be generated for it's
use. ok miod@ tedu@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bio/bio.h4
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index ee0afb1553..ee3c1d5d22 100644
--- a/src/lib/libcrypto/bio/bio.h
+++ b/src/lib/libcrypto/bio/bio.h
@@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args)
759__bio_h__attr__((__format__(__printf__, 2, 0))); 759__bio_h__attr__((__format__(__printf__, 2, 0)));
760int 760int
761BIO_snprintf(char *buf, size_t n, const char *format, ...) 761BIO_snprintf(char *buf, size_t n, const char *format, ...)
762__bio_h__attr__((__format__(__printf__, 3, 4))); 762__bio_h__attr__((deprecated, __format__(__printf__, 3, 4)));
763int 763int
764BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) 764BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
765__bio_h__attr__((__format__(__printf__, 3, 0))); 765__bio_h__attr__((deprecated, __format__(__printf__, 3, 0)));
766#undef __bio_h__attr__ 766#undef __bio_h__attr__
767 767
768/* BEGIN ERROR CODES */ 768/* BEGIN ERROR CODES */
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h
index ee0afb1553..ee3c1d5d22 100644
--- a/src/lib/libssl/src/crypto/bio/bio.h
+++ b/src/lib/libssl/src/crypto/bio/bio.h
@@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args)
759__bio_h__attr__((__format__(__printf__, 2, 0))); 759__bio_h__attr__((__format__(__printf__, 2, 0)));
760int 760int
761BIO_snprintf(char *buf, size_t n, const char *format, ...) 761BIO_snprintf(char *buf, size_t n, const char *format, ...)
762__bio_h__attr__((__format__(__printf__, 3, 4))); 762__bio_h__attr__((deprecated, __format__(__printf__, 3, 4)));
763int 763int
764BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) 764BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
765__bio_h__attr__((__format__(__printf__, 3, 0))); 765__bio_h__attr__((deprecated, __format__(__printf__, 3, 0)));
766#undef __bio_h__attr__ 766#undef __bio_h__attr__
767 767
768/* BEGIN ERROR CODES */ 768/* BEGIN ERROR CODES */