aboutsummaryrefslogtreecommitdiff
path: root/eap_tls_common.c
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-09-01 16:36:06 +0800
committerChung-yih Wang <cywang@google.com>2009-09-01 16:36:06 +0800
commitc71b33c4b0968b34be24a02f2d27ef75747052d7 (patch)
tree2acfcdb259464dc783617cf33d31705af75a49af /eap_tls_common.c
parent61149877668f2d0c95a9b9b0155f43b4191040bc (diff)
downloadwpa_supplicant-c71b33c4b0968b34be24a02f2d27ef75747052d7.tar.gz
Support certificate chain for CA cert from blob data.
We have to use PEM format for blob data and modify the ca_cert handling to support certificate chain for CA certificates. Since the original code can not support the CA chain from blob.
Diffstat (limited to 'eap_tls_common.c')
-rw-r--r--eap_tls_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/eap_tls_common.c b/eap_tls_common.c
index de17886..bf9bf9c 100644
--- a/eap_tls_common.c
+++ b/eap_tls_common.c
@@ -162,7 +162,11 @@ struct wpa_config_blob *get_blob_from_keystore(const char *name)
}
}
if (blob) {
- convert_PEM_to_DER(blob);
+ // We have to use PEM format here and modify the ca_cert
+ // handling to support cert. chain for CA certificates.
+ // Since the original code can not support the CA chain
+ // from blob data.
+ if (strstr(name, "CACERT") == NULL) convert_PEM_to_DER(blob);
add_temporal_blob(blob);
}
return blob;