Skip to content

Expose wc_CryptoCb_GetDevice and add CryptoCb API test coverage#10604

Open
AlexLanzano wants to merge 1 commit into
wolfSSL:masterfrom
AlexLanzano:cryptocb-getdevice
Open

Expose wc_CryptoCb_GetDevice and add CryptoCb API test coverage#10604
AlexLanzano wants to merge 1 commit into
wolfSSL:masterfrom
AlexLanzano:cryptocb-getdevice

Conversation

@AlexLanzano
Copy link
Copy Markdown
Member

Description

Exposes wc_CryptoCb_GetDevice() as a public API and adds unit test coverage for it.
This is necessary to if you want to check if a device ID has already been registered.

Testing

Added a unit test in test_wc_CryptoCb() (tests/api.c) that exercises the lookup behavior:

./configure --enable-cryptocb --enable-all
make -j tests/unit.test
./tests/unit.test -test_wc_CryptoCb
# => test_wc_CryptoCb : passed
#    Failed/Skipped/Passed/All: 0/0/1/1

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