mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Convert x509write_crt interface to PK
This commit is contained in:
parent
6de63e480d
commit
f38e71afd5
4 changed files with 37 additions and 35 deletions
|
|
@ -259,17 +259,17 @@ int x509write_crt_set_subject_name( x509write_cert *ctx, char *subject_name );
|
|||
* \brief Set the subject public key for the certificate
|
||||
*
|
||||
* \param ctx CRT context to use
|
||||
* \param rsa RSA public key to include
|
||||
* \param key public key to include
|
||||
*/
|
||||
void x509write_crt_set_subject_key( x509write_cert *ctx, rsa_context *rsa );
|
||||
void x509write_crt_set_subject_key( x509write_cert *ctx, pk_context *key );
|
||||
|
||||
/**
|
||||
* \brief Set the issuer key used for signing the certificate
|
||||
*
|
||||
* \param ctx CRT context to use
|
||||
* \param rsa RSA key to sign with
|
||||
* \param key private key to sign with
|
||||
*/
|
||||
void x509write_crt_set_issuer_key( x509write_cert *ctx, rsa_context *rsa );
|
||||
void x509write_crt_set_issuer_key( x509write_cert *ctx, pk_context *key );
|
||||
|
||||
/**
|
||||
* \brief Set the MD algorithm to use for the signature
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue