Encoding/decoding code that currently ignores the value of this
field, but this will change when certificates and role features
are merged in.
Change-Id: Idf8d2b1ffd95d2e517e4da7c76ce767a57ce428d
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18407
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
memset(&privKey, 0, sizeof(privKey));
privKey.data = privData;
privKey.len = keySize;
- privKey.encoding = OIC_ENCODING_UNKNOW;
+ privKey.encoding = OIC_ENCODING_RAW;
if (!OCGetRandomBytes(privData, privDataKeySize))
{
memset(&ownerKey, 0, sizeof(ownerKey));
ownerKey.data = ownerPSK;
ownerKey.len = OWNER_PSK_LENGTH_128;
- ownerKey.encoding = OIC_ENCODING_UNKNOW;
+ ownerKey.encoding = OIC_ENCODING_RAW;
//Generating SubOwnerPSK
CAResult_t pskRet = CAGenerateOwnerPSK(&endpoint,