Added missing x509write_crt_set_version()

This commit is contained in:
Paul Bakker 2013-10-11 10:54:28 +02:00
parent b7c13123de
commit 5191e92ecc
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,7 @@ Bugfix
* Possible naming collision in dhm_context * Possible naming collision in dhm_context
* Better support for MSVC * Better support for MSVC
* threading_set_alt() name * threading_set_alt() name
* Added missing x509write_crt_set_version()
= PolarSSL-1.3.0 released on 2013-10-01 = PolarSSL-1.3.0 released on 2013-10-01
Features Features

View file

@ -61,6 +61,11 @@ void x509write_crt_free( x509write_cert *ctx )
memset( ctx, 0, sizeof(x509write_cert) ); memset( ctx, 0, sizeof(x509write_cert) );
} }
void x509write_crt_set_version( x509write_cert *ctx, int version )
{
ctx->version = version;
}
void x509write_crt_set_md_alg( x509write_cert *ctx, md_type_t md_alg ) void x509write_crt_set_md_alg( x509write_cert *ctx, md_type_t md_alg )
{ {
ctx->md_alg = md_alg; ctx->md_alg = md_alg;