1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Convert x509write_crt interface to PK

This commit is contained in:
Manuel Pégourié-Gonnard
2013-09-12 05:21:54 +02:00
committed by Paul Bakker
parent 6de63e480d
commit f38e71afd5
4 changed files with 37 additions and 35 deletions

View File

@@ -312,14 +312,14 @@ void x509write_crt_set_md_alg( x509write_cert *ctx, md_type_t md_alg )
ctx->md_alg = md_alg;
}
void x509write_crt_set_subject_key( x509write_cert *ctx, rsa_context *rsa )
void x509write_crt_set_subject_key( x509write_cert *ctx, pk_context *key )
{
ctx->subject_key = rsa;
ctx->subject_key = pk_rsa( *key );
}
void x509write_crt_set_issuer_key( x509write_cert *ctx, rsa_context *rsa )
void x509write_crt_set_issuer_key( x509write_cert *ctx, pk_context *key )
{
ctx->issuer_key = rsa;
ctx->issuer_key = pk_rsa( *key );
}
int x509write_crt_set_subject_name( x509write_cert *ctx, char *subject_name )