Skip to content

Commit 60368c8

Browse files
committed
update she union for callback to be getUid not setUid
1 parent 6851571 commit 60368c8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/src/cryptocb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,8 +2055,8 @@ int wc_CryptoCb_SheGetUid(wc_SHE* she, const byte* uid, word32 uidSz,
20552055
cryptoInfo.she.she = she;
20562056
cryptoInfo.she.type = WC_SHE_GET_UID;
20572057
cryptoInfo.she.ctx = ctx;
2058-
cryptoInfo.she.op.setUid.uid = uid;
2059-
cryptoInfo.she.op.setUid.uidSz = uidSz;
2058+
cryptoInfo.she.op.getUid.uid = uid;
2059+
cryptoInfo.she.op.getUid.uidSz = uidSz;
20602060

20612061
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
20622062
}

wolfssl/wolfcrypt/cryptocb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ typedef struct wc_CryptoInfo {
470470
struct {
471471
const byte* uid;
472472
word32 uidSz;
473-
} setUid;
473+
} getUid;
474474
struct {
475475
word32* counter;
476476
} getCounter;

0 commit comments

Comments
 (0)