From 5191e92ecc94eee61e554bd91bbd2cda0d60d778 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 11 Oct 2013 10:54:28 +0200
Subject: [PATCH] Added missing x509write_crt_set_version()
---
ChangeLog | 1 +
library/x509write_crt.c | 5 +++++
2 files changed, 6 insertions(+)
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;