Skip to content

Support in SSL for setting a private key id#2078

Merged
toddouska merged 3 commits intowolfSSL:masterfrom
SparkiDev:ssl_priv_id
Feb 12, 2019
Merged

Support in SSL for setting a private key id#2078
toddouska merged 3 commits intowolfSSL:masterfrom
SparkiDev:ssl_priv_id

Conversation

@SparkiDev
Copy link
Contributor

Works with PKCS #11 to use key on device.

@SparkiDev SparkiDev self-assigned this Feb 8, 2019
rv = session->func->C_FindObjects(session->handle, key, 1, &count);
if (rv != CKR_OK)
ret = WC_HW_E;
session->func->C_FindObjectsFinal(session->handle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this function fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.
Changed all calls to C_FindObjectsFinal to check for an error.

@SparkiDev SparkiDev removed their assignment Feb 12, 2019
@toddouska toddouska merged commit feae776 into wolfSSL:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants