mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Const correctness
This commit is contained in:
parent
6a6087e71d
commit
50dc850c52
7 changed files with 21 additions and 14 deletions
|
|
@ -312,8 +312,8 @@ int x509write_crt_set_serial( x509write_cert *ctx, const mpi *serial );
|
|||
* \return 0 if timestamp was parsed successfully, or
|
||||
* a specific error code
|
||||
*/
|
||||
int x509write_crt_set_validity( x509write_cert *ctx, char *not_before,
|
||||
char *not_after );
|
||||
int x509write_crt_set_validity( x509write_cert *ctx, const char *not_before,
|
||||
const char *not_after );
|
||||
|
||||
/**
|
||||
* \brief Set the issuer name for a Certificate
|
||||
|
|
@ -327,7 +327,8 @@ int x509write_crt_set_validity( x509write_cert *ctx, char *not_before,
|
|||
* \return 0 if issuer name was parsed successfully, or
|
||||
* a specific error code
|
||||
*/
|
||||
int x509write_crt_set_issuer_name( x509write_cert *ctx, char *issuer_name );
|
||||
int x509write_crt_set_issuer_name( x509write_cert *ctx,
|
||||
const char *issuer_name );
|
||||
|
||||
/**
|
||||
* \brief Set the subject name for a Certificate
|
||||
|
|
@ -341,7 +342,8 @@ int x509write_crt_set_issuer_name( x509write_cert *ctx, char *issuer_name );
|
|||
* \return 0 if subject name was parsed successfully, or
|
||||
* a specific error code
|
||||
*/
|
||||
int x509write_crt_set_subject_name( x509write_cert *ctx, char *subject_name );
|
||||
int x509write_crt_set_subject_name( x509write_cert *ctx,
|
||||
const char *subject_name );
|
||||
|
||||
/**
|
||||
* \brief Set the subject public key for the certificate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue