File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
features/nanostack/coap-service/source Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ struct coap_security_s {
51
51
#if defined(MBEDTLS_X509_CRT_PARSE_C )
52
52
mbedtls_x509_crt _cacert ;
53
53
mbedtls_x509_crt _owncert ;
54
- #endif
55
54
mbedtls_pk_context _pkey ;
55
+ #endif
56
56
57
57
uint8_t _pw [64 ];
58
58
uint8_t _pw_len ;
@@ -109,8 +109,8 @@ static int coap_security_handler_init(coap_security_t *sec){
109
109
#if defined(MBEDTLS_X509_CRT_PARSE_C )
110
110
mbedtls_x509_crt_init ( & sec -> _cacert );
111
111
mbedtls_x509_crt_init ( & sec -> _owncert );
112
- #endif
113
112
mbedtls_pk_init ( & sec -> _pkey );
113
+ #endif
114
114
115
115
memset (& sec -> _cookie , 0 , sizeof (simple_cookie_t ));
116
116
memset (& sec -> _keyblk , 0 , sizeof (key_block_t ));
@@ -145,9 +145,8 @@ static void coap_security_handler_reset(coap_security_t *sec){
145
145
#if defined(MBEDTLS_X509_CRT_PARSE_C )
146
146
mbedtls_x509_crt_free (& sec -> _cacert );
147
147
mbedtls_x509_crt_free (& sec -> _owncert );
148
- #endif
149
-
150
148
mbedtls_pk_free (& sec -> _pkey );
149
+ #endif
151
150
152
151
mbedtls_entropy_free ( & sec -> _entropy );
153
152
mbedtls_ctr_drbg_free ( & sec -> _ctr_drbg );
You can’t perform that action at this time.
0 commit comments