Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
99b9259f
Commit
99b9259f
authored
Feb 15, 2015
by
Mansour Moufid
Committed by
Manuel Pégourié-Gonnard
Feb 16, 2015
Browse files
Fix whitespace of
369e6c20
.
parent
c531b4af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
14 deletions
+7
-14
library/asn1parse.c
library/asn1parse.c
+1
-2
library/ssl_cache.c
library/ssl_cache.c
+1
-2
library/ssl_tls.c
library/ssl_tls.c
+4
-8
library/x509_crt.c
library/x509_crt.c
+1
-2
No files found.
library/asn1parse.c
View file @
99b9259f
...
...
@@ -270,8 +270,7 @@ int asn1_get_sequence_of( unsigned char **p,
/* Allocate and assign next pointer */
if(
*p
<
end
)
{
cur->next
=
polarssl_malloc(
sizeof(
asn1_sequence
)
)
;
cur->next
=
polarssl_malloc(
sizeof(
asn1_sequence
)
)
;
if(
cur->next
==
NULL
)
return(
POLARSSL_ERR_ASN1_MALLOC_FAILED
)
;
...
...
library/ssl_cache.c
View file @
99b9259f
...
...
@@ -259,8 +259,7 @@ int ssl_cache_set( void *data, const ssl_session *session )
*/
if(
session->peer_cert
!=
NULL
)
{
cur->peer_cert.p
=
polarssl_malloc(
session->peer_cert->raw.len
)
;
cur->peer_cert.p
=
polarssl_malloc(
session->peer_cert->raw.len
)
;
if(
cur->peer_cert.p
==
NULL
)
{
ret
=
1
;
...
...
library/ssl_tls.c
View file @
99b9259f
...
...
@@ -3545,20 +3545,17 @@ static int ssl_handshake_init( ssl_context *ssl )
*/
if(
ssl->transform_negotiate
==
NULL
)
{
ssl->transform_negotiate
=
polarssl_malloc(
sizeof(ssl_transform)
)
;
ssl->transform_negotiate
=
polarssl_malloc(
sizeof(ssl_transform)
)
;
}
if(
ssl->session_negotiate
==
NULL
)
{
ssl->session_negotiate
=
polarssl_malloc(
sizeof(ssl_session)
)
;
ssl->session_negotiate
=
polarssl_malloc(
sizeof(ssl_session)
)
;
}
if(
ssl->handshake
==
NULL
)
{
ssl->handshake
=
polarssl_malloc(
sizeof(ssl_handshake_params)
)
;
ssl->handshake
=
polarssl_malloc(
sizeof(ssl_handshake_params)
)
;
}
/* All pointers should exist and can be directly freed without issue */
...
...
@@ -4065,8 +4062,7 @@ int ssl_set_psk( ssl_context *ssl, const unsigned char *psk, size_t psk_len,
ssl->psk_identity_len
=
psk_identity_len
;
ssl->psk
=
polarssl_malloc(
ssl->psk_len
)
;
ssl->psk_identity
=
polarssl_malloc(
ssl->psk_identity_len
)
;
ssl->psk_identity
=
polarssl_malloc(
ssl->psk_identity_len
)
;
if(
ssl->psk
==
NULL
||
ssl->psk_identity
==
NULL
)
return(
POLARSSL_ERR_SSL_MALLOC_FAILED
)
;
...
...
library/x509_crt.c
View file @
99b9259f
...
...
@@ -359,8 +359,7 @@ static int x509_get_subject_alt_name( unsigned char **p,
if(
cur->next
!=
NULL
)
return(
POLARSSL_ERR_X509_INVALID_EXTENSIONS
)
;
cur->next
=
polarssl_malloc(
sizeof(
asn1_sequence
)
)
;
cur->next
=
polarssl_malloc(
sizeof(
asn1_sequence
)
)
;
if(
cur->next
==
NULL
)
return(
POLARSSL_ERR_X509_INVALID_EXTENSIONS
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment