From 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 19 Mar 2016 12:32:14 -0400 Subject: RT4660: BIO_METHODs should be const. BIO_new, etc., don't need a non-const BIO_METHOD. This allows all the built-in method tables to live in .rodata. Reviewed-by: Richard Levitte --- doc/crypto/BIO_f_base64.pod | 2 +- doc/crypto/BIO_f_buffer.pod | 2 +- doc/crypto/BIO_f_cipher.pod | 2 +- doc/crypto/BIO_f_md.pod | 2 +- doc/crypto/BIO_f_null.pod | 2 +- doc/crypto/BIO_f_ssl.pod | 2 +- doc/crypto/BIO_new.pod | 4 ++-- doc/crypto/BIO_s_accept.pod | 2 +- doc/crypto/BIO_s_bio.pod | 2 +- doc/crypto/BIO_s_connect.pod | 2 +- doc/crypto/BIO_s_fd.pod | 2 +- doc/crypto/BIO_s_file.pod | 2 +- doc/crypto/BIO_s_mem.pod | 4 ++-- doc/crypto/BIO_s_null.pod | 2 +- doc/crypto/BIO_s_socket.pod | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) (limited to 'doc') diff --git a/doc/crypto/BIO_f_base64.pod b/doc/crypto/BIO_f_base64.pod index d1d7bf0bd0..c25ac51124 100644 --- a/doc/crypto/BIO_f_base64.pod +++ b/doc/crypto/BIO_f_base64.pod @@ -9,7 +9,7 @@ BIO_f_base64 - base64 BIO filter #include #include - BIO_METHOD * BIO_f_base64(void); + const BIO_METHOD * BIO_f_base64(void); =head1 DESCRIPTION diff --git a/doc/crypto/BIO_f_buffer.pod b/doc/crypto/BIO_f_buffer.pod index d07c41917f..edaa3513df 100644 --- a/doc/crypto/BIO_f_buffer.pod +++ b/doc/crypto/BIO_f_buffer.pod @@ -8,7 +8,7 @@ BIO_f_buffer - buffering BIO #include - BIO_METHOD * BIO_f_buffer(void); + const BIO_METHOD * BIO_f_buffer(void); #define BIO_get_buffer_num_lines(b) #define BIO_set_read_buffer_size(b,size) diff --git a/doc/crypto/BIO_f_cipher.pod b/doc/crypto/BIO_f_cipher.pod index fd8762a4fe..947d1523e3 100644 --- a/doc/crypto/BIO_f_cipher.pod +++ b/doc/crypto/BIO_f_cipher.pod @@ -9,7 +9,7 @@ BIO_f_cipher, BIO_set_cipher, BIO_get_cipher_status, BIO_get_cipher_ctx - cipher #include #include - BIO_METHOD * BIO_f_cipher(void); + const BIO_METHOD * BIO_f_cipher(void); void BIO_set_cipher(BIO *b,const EVP_CIPHER *cipher, unsigned char *key, unsigned char *iv, int enc); int BIO_get_cipher_status(BIO *b) diff --git a/doc/crypto/BIO_f_md.pod b/doc/crypto/BIO_f_md.pod index d9aec082f8..b0fe0143bd 100644 --- a/doc/crypto/BIO_f_md.pod +++ b/doc/crypto/BIO_f_md.pod @@ -9,7 +9,7 @@ BIO_f_md, BIO_set_md, BIO_get_md, BIO_get_md_ctx - message digest BIO filter #include #include - BIO_METHOD * BIO_f_md(void); + const BIO_METHOD * BIO_f_md(void); int BIO_set_md(BIO *b,EVP_MD *md); int BIO_get_md(BIO *b,EVP_MD **mdp); int BIO_get_md_ctx(BIO *b,EVP_MD_CTX **mdcp); diff --git a/doc/crypto/BIO_f_null.pod b/doc/crypto/BIO_f_null.pod index b057c18408..6ee84915e1 100644 --- a/doc/crypto/BIO_f_null.pod +++ b/doc/crypto/BIO_f_null.pod @@ -8,7 +8,7 @@ BIO_f_null - null filter #include - BIO_METHOD * BIO_f_null(void); + const BIO_METHOD * BIO_f_null(void); =head1 DESCRIPTION diff --git a/doc/crypto/BIO_f_ssl.pod b/doc/crypto/BIO_f_ssl.pod index 4d49dc789b..46eecd11e2 100644 --- a/doc/crypto/BIO_f_ssl.pod +++ b/doc/crypto/BIO_f_ssl.pod @@ -12,7 +12,7 @@ BIO_ssl_shutdown - SSL BIO #include #include - BIO_METHOD *BIO_f_ssl(void); + const BIO_METHOD *BIO_f_ssl(void); #define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl) #define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp) diff --git a/doc/crypto/BIO_new.pod b/doc/crypto/BIO_new.pod index d6d87c3901..4c9299bb3c 100644 --- a/doc/crypto/BIO_new.pod +++ b/doc/crypto/BIO_new.pod @@ -8,8 +8,8 @@ BIO_new, BIO_set, BIO_up_ref, BIO_free, BIO_vfree, BIO_free_all - BIO allocation #include - BIO * BIO_new(BIO_METHOD *type); - int BIO_set(BIO *a,BIO_METHOD *type); + BIO * BIO_new(const BIO_METHOD *type); + int BIO_set(BIO *a,const BIO_METHOD *type); int BIO_up_ref(BIO *a); int BIO_free(BIO *a); void BIO_vfree(BIO *a); diff --git a/doc/crypto/BIO_s_accept.pod b/doc/crypto/BIO_s_accept.pod index ec8fa3a0ca..e0877e0d8e 100644 --- a/doc/crypto/BIO_s_accept.pod +++ b/doc/crypto/BIO_s_accept.pod @@ -10,7 +10,7 @@ BIO_get_bind_mode, BIO_do_accept - accept BIO #include - BIO_METHOD *BIO_s_accept(void); + const BIO_METHOD *BIO_s_accept(void); long BIO_set_accept_port(BIO *b, char *name); char *BIO_get_accept_port(BIO *b); diff --git a/doc/crypto/BIO_s_bio.pod b/doc/crypto/BIO_s_bio.pod index 0daa518a15..ce3cf6e383 100644 --- a/doc/crypto/BIO_s_bio.pod +++ b/doc/crypto/BIO_s_bio.pod @@ -11,7 +11,7 @@ BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO #include - BIO_METHOD *BIO_s_bio(void); + const BIO_METHOD *BIO_s_bio(void); #define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2) #define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) diff --git a/doc/crypto/BIO_s_connect.pod b/doc/crypto/BIO_s_connect.pod index 7adb78da70..bd3cf81d5b 100644 --- a/doc/crypto/BIO_s_connect.pod +++ b/doc/crypto/BIO_s_connect.pod @@ -11,7 +11,7 @@ BIO_set_nbio, BIO_do_connect - connect BIO #include - BIO_METHOD * BIO_s_connect(void); + const BIO_METHOD * BIO_s_connect(void); BIO *BIO_new_connect(char *name); diff --git a/doc/crypto/BIO_s_fd.pod b/doc/crypto/BIO_s_fd.pod index 2f6b033f0a..7c7cee9843 100644 --- a/doc/crypto/BIO_s_fd.pod +++ b/doc/crypto/BIO_s_fd.pod @@ -8,7 +8,7 @@ BIO_s_fd, BIO_set_fd, BIO_get_fd, BIO_new_fd - file descriptor BIO #include - BIO_METHOD * BIO_s_fd(void); + const BIO_METHOD * BIO_s_fd(void); #define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd) #define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c) diff --git a/doc/crypto/BIO_s_file.pod b/doc/crypto/BIO_s_file.pod index 5adc569793..5ba0d34dd4 100644 --- a/doc/crypto/BIO_s_file.pod +++ b/doc/crypto/BIO_s_file.pod @@ -10,7 +10,7 @@ BIO_rw_filename - FILE bio #include - BIO_METHOD * BIO_s_file(void); + const BIO_METHOD * BIO_s_file(void); BIO *BIO_new_file(const char *filename, const char *mode); BIO *BIO_new_fp(FILE *stream, int flags); diff --git a/doc/crypto/BIO_s_mem.pod b/doc/crypto/BIO_s_mem.pod index b9ce5da6e2..03e291dce3 100644 --- a/doc/crypto/BIO_s_mem.pod +++ b/doc/crypto/BIO_s_mem.pod @@ -9,8 +9,8 @@ BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO #include - BIO_METHOD * BIO_s_mem(void); - BIO_METHOD * BIO_s_secmem(void); + const BIO_METHOD * BIO_s_mem(void); + const BIO_METHOD * BIO_s_secmem(void); BIO_set_mem_eof_return(BIO *b,int v) long BIO_get_mem_data(BIO *b, char **pp) diff --git a/doc/crypto/BIO_s_null.pod b/doc/crypto/BIO_s_null.pod index e5514f7238..00905ecbea 100644 --- a/doc/crypto/BIO_s_null.pod +++ b/doc/crypto/BIO_s_null.pod @@ -8,7 +8,7 @@ BIO_s_null - null data sink #include - BIO_METHOD * BIO_s_null(void); + const BIO_METHOD * BIO_s_null(void); =head1 DESCRIPTION diff --git a/doc/crypto/BIO_s_socket.pod b/doc/crypto/BIO_s_socket.pod index 1c8d3a9110..13efb50edc 100644 --- a/doc/crypto/BIO_s_socket.pod +++ b/doc/crypto/BIO_s_socket.pod @@ -8,7 +8,7 @@ BIO_s_socket, BIO_new_socket - socket BIO #include - BIO_METHOD *BIO_s_socket(void); + const BIO_METHOD *BIO_s_socket(void); long BIO_set_fd(BIO *b, int fd, long close_flag); long BIO_get_fd(BIO *b, int *c); -- cgit v1.2.3