PEM: constify PEM_write_ routines
authorRichard Levitte <levitte@openssl.org>
Fri, 15 Nov 2019 07:54:17 +0000 (08:54 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 18 Nov 2019 01:34:12 +0000 (02:34 +0100)
commitde0799b0fc845869d775520382b4e7f9995732e5
treefbe29de0651a1a2399089f25ed9b1266f7b56bd6
parent97a986f78289fef71bf8778dc4763458e983750c
PEM: constify PEM_write_ routines

There's no reason why the object to be written, or the key string
given by the caller should be non-const.

This makes the IMPLEMENT_PEM_..._const and  DECLARE_PEM_..._const
macros superfluous, so we keep them around but mark them deprecated.

In all places where IMPLEMENT_PEM_..._const and  DECLARE_PEM_..._const
are used, they are replaced with the corresponding macros without
'_const'.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10452)
crypto/cms/cms_io.c
crypto/pem/pem_all.c
crypto/pem/pem_info.c
crypto/pem/pem_lib.c
crypto/pem/pem_pk8.c
crypto/pem/pem_pkey.c
crypto/pem/pem_sign.c
crypto/pem/pvkfmt.c
include/openssl/cms.h
include/openssl/pem.h