mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
one less memcpy
This commit is contained in:
@@ -26042,7 +26042,7 @@ static int SetCaEx(byte* out, word32 outSz, byte isCa)
|
|||||||
XMEMCPY(out, caBasicConstASN1, sizeof(caBasicConstASN1));
|
XMEMCPY(out, caBasicConstASN1, sizeof(caBasicConstASN1));
|
||||||
|
|
||||||
if (!isCa) {
|
if (!isCa) {
|
||||||
XMEMCPY(out + (sizeof(caBasicConstASN1) - 1U), &isCa, sizeof(isCa));
|
out[sizeof(caBasicConstASN1)-1] = isCa;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)sizeof(caBasicConstASN1);
|
return (int)sizeof(caBasicConstASN1);
|
||||||
|
Reference in New Issue
Block a user