mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Various const fixes
This commit is contained in:
parent
17d99fc6f2
commit
8fc30b178c
6 changed files with 26 additions and 26 deletions
|
|
@ -62,15 +62,15 @@ int main( int argc, char *argv[] )
|
|||
*/
|
||||
struct options
|
||||
{
|
||||
char *filename; /* filename of the key file */
|
||||
const char *filename; /* filename of the key file */
|
||||
int debug_level; /* level of debugging */
|
||||
char *output_file; /* where to store the constructed key file */
|
||||
char *subject_name; /* subject name for certificate request */
|
||||
const char *output_file; /* where to store the constructed key file */
|
||||
const char *subject_name; /* subject name for certificate request */
|
||||
unsigned char key_usage; /* key usage flags */
|
||||
unsigned char ns_cert_type; /* NS cert type */
|
||||
} opt;
|
||||
|
||||
int write_certificate_request( x509write_csr *req, char *output_file,
|
||||
int write_certificate_request( x509write_csr *req, const char *output_file,
|
||||
int (*f_rng)(void *, unsigned char *, size_t),
|
||||
void *p_rng )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,18 +75,18 @@ int main( int argc, char *argv[] )
|
|||
*/
|
||||
struct options
|
||||
{
|
||||
char *issuer_crt; /* filename of the issuer certificate */
|
||||
char *request_file; /* filename of the certificate request */
|
||||
char *subject_key; /* filename of the subject key file */
|
||||
char *issuer_key; /* filename of the issuer key file */
|
||||
char *subject_pwd; /* password for the subject key file */
|
||||
char *issuer_pwd; /* password for the issuer key file */
|
||||
char *output_file; /* where to store the constructed key file */
|
||||
char *subject_name; /* subject name for certificate */
|
||||
char *issuer_name; /* issuer name for certificate */
|
||||
char *not_before; /* validity period not before */
|
||||
char *not_after; /* validity period not after */
|
||||
char *serial; /* serial number string */
|
||||
const char *issuer_crt; /* filename of the issuer certificate */
|
||||
const char *request_file; /* filename of the certificate request */
|
||||
const char *subject_key; /* filename of the subject key file */
|
||||
const char *issuer_key; /* filename of the issuer key file */
|
||||
const char *subject_pwd; /* password for the subject key file */
|
||||
const char *issuer_pwd; /* password for the issuer key file */
|
||||
const char *output_file; /* where to store the constructed key file */
|
||||
const char *subject_name; /* subject name for certificate */
|
||||
const char *issuer_name; /* issuer name for certificate */
|
||||
const char *not_before; /* validity period not before */
|
||||
const char *not_after; /* validity period not after */
|
||||
const char *serial; /* serial number string */
|
||||
int selfsign; /* selfsign the certificate */
|
||||
int is_ca; /* is a CA certificate */
|
||||
int max_pathlen; /* maximum CA path length */
|
||||
|
|
@ -94,7 +94,7 @@ struct options
|
|||
unsigned char ns_cert_type; /* NS cert type */
|
||||
} opt;
|
||||
|
||||
int write_certificate( x509write_cert *crt, char *output_file,
|
||||
int write_certificate( x509write_cert *crt, const char *output_file,
|
||||
int (*f_rng)(void *, unsigned char *, size_t),
|
||||
void *p_rng )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue