diff --git a/ChangeLog b/ChangeLog index 7becbcd58..f6def8cbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ Bugfix * Possible naming collision in dhm_context * Better support for MSVC * threading_set_alt() name + * Added missing x509write_crt_set_version() = PolarSSL-1.3.0 released on 2013-10-01 Features diff --git a/library/x509write_crt.c b/library/x509write_crt.c index 1761c1f14..db5ae0a2a 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -61,6 +61,11 @@ void x509write_crt_free( x509write_cert *ctx ) 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 ) { ctx->md_alg = md_alg;