mbed TLS upgraded to 2.6.0
Fork of mbedtls by
Diff: library/x509_csr.c
- Revision:
- 2:bbdeda018a3c
- Parent:
- 1:9ebc941037d5
--- a/library/x509_csr.c Fri Sep 29 18:41:59 2017 +0100 +++ b/library/x509_csr.c Fri Sep 29 19:50:30 2017 +0100 @@ -168,14 +168,14 @@ return( ret ); } - csr->version++; - - if( csr->version != 1 ) + if( csr->version != 0 ) { mbedtls_x509_csr_free( csr ); return( MBEDTLS_ERR_X509_UNKNOWN_VERSION ); } + csr->version++; + /* * subject Name */