Skip to content

Commit f8956ab

Browse files
committed
update she union for callback to be getUid not setUid
1 parent f081a08 commit f8956ab

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
@@ -2140,8 +2140,8 @@ int wc_CryptoCb_SheGetUid(wc_SHE* she, const byte* uid, word32 uidSz,
21402140
cryptoInfo.she.she = she;
21412141
cryptoInfo.she.type = WC_SHE_GET_UID;
21422142
cryptoInfo.she.ctx = ctx;
2143-
cryptoInfo.she.op.setUid.uid = uid;
2144-
cryptoInfo.she.op.setUid.uidSz = uidSz;
2143+
cryptoInfo.she.op.getUid.uid = uid;
2144+
cryptoInfo.she.op.getUid.uidSz = uidSz;
21452145

21462146
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
21472147
}

wolfssl/wolfcrypt/cryptocb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ typedef struct wc_CryptoInfo {
490490
struct {
491491
const byte* uid;
492492
word32 uidSz;
493-
} setUid;
493+
} getUid;
494494
struct {
495495
word32* counter;
496496
} getCounter;

0 commit comments

Comments
 (0)