Skip to content

Commit 3c39dbd

Browse files
author
Mika Leppänen
committed
Corrected nanostack PAE controller
1 parent befc833 commit 3c39dbd

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

features/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.c

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -821,40 +821,6 @@ int8_t ws_pae_controller_own_certificates_remove(void)
821821
return 0;
822822
}
823823

824-
int8_t ws_pae_controller_own_certificate_add(const arm_certificate_entry_s *cert)
825-
{
826-
if (!cert) {
827-
return -1;
828-
}
829-
830-
int8_t ret = -1;
831-
832-
ns_list_foreach(pae_controller_t, entry, &pae_controller_list) {
833-
for (uint8_t i = 0; i < SEC_PROT_CERT_CHAIN_DEPTH; i++) {
834-
if (entry->certs.own_cert_chain.cert[i] == NULL) {
835-
sec_prot_certs_cert_set(&entry->certs.own_cert_chain, i, (uint8_t *) cert->cert, cert->cert_len);
836-
// Set private key if set for the certificate that is added
837-
if (cert->key && cert->key_len > 0) {
838-
sec_prot_certs_priv_key_set(&entry->certs.own_cert_chain, (uint8_t *) cert->key, cert->key_len);
839-
}
840-
ret = 0;
841-
break;
842-
}
843-
}
844-
}
845-
846-
return ret;
847-
}
848-
849-
int8_t ws_pae_controller_own_certificates_remove(void)
850-
{
851-
ns_list_foreach(pae_controller_t, entry, &pae_controller_list) {
852-
sec_prot_certs_chain_entry_init(&entry->certs.own_cert_chain);
853-
}
854-
855-
return 0;
856-
}
857-
858824
int8_t ws_pae_controller_trusted_certificate_add(const arm_certificate_entry_s *cert)
859825
{
860826
if (!cert) {

0 commit comments

Comments
 (0)