oc_obt:use PSK ciphersuite for provisioning reqs
@@ -1363,6 +1363,9 @@ oc_obt_provision_role_certificate(oc_role_t *roles, oc_uuid_t *uuid,
/** 1) switch dos to RFPRO
*/
+
+ oc_tls_select_psk_ciphersuite();
+
p->switch_dos = switch_dos(device, OC_DOS_RFPRO, device_RFPRO, p);
if (!p->switch_dos) {
oc_memb_free(&oc_credprov_ctx_m, p);
@@ -1410,6 +1413,9 @@ oc_obt_provision_identity_certificate(oc_uuid_t *uuid, oc_obt_status_cb_t cb,
/** 1) switch dos to RFPRO
*/
+
+ oc_tls_select_psk_ciphersuite();
+
p->switch_dos = switch_dos(device, OC_DOS_RFPRO, device_RFPRO, p);
if (!p->switch_dos) {
oc_memb_free(&oc_credprov_ctx_m, p);
@@ -1456,6 +1462,8 @@ oc_obt_provision_pairwise_credentials(oc_uuid_t *uuid1, oc_uuid_t *uuid2,
p->device1 = device1;
p->device2 = device2;
+ oc_tls_select_psk_ciphersuite();
+
p->switch_dos = switch_dos(device1, OC_DOS_RFPRO, device1_RFPRO, p);
if (!p->switch_dos) {
oc_memb_free(&oc_credprov_ctx_m, p);
@@ -1873,6 +1881,8 @@ oc_obt_provision_ace(oc_uuid_t *uuid, oc_sec_ace_t *ace,
r->ace = ace;
r->device = device;
+ oc_tls_select_psk_ciphersuite();
+
r->switch_dos = switch_dos(device, OC_DOS_RFPRO, provision_ace, r);
if (!r->switch_dos) {
free_ace(ace);
