mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 01:29:19 +02:00
* Patch from Andrew Haines to fix creating signature. Fixes issue #41058
This commit is contained in:
parent
8488c87b20
commit
d6efbfb2bb
@ -51,7 +51,7 @@ Var
|
|||||||
begin
|
begin
|
||||||
Result:='';
|
Result:='';
|
||||||
aPrivateKey:=Default(TECCPrivateKey);
|
aPrivateKey:=Default(TECCPrivateKey);
|
||||||
Move(aKey.AsPointer,aPrivateKey,Sizeof(aPrivateKey));
|
Move(aKey.AsPointer^,aPrivateKey,Sizeof(aPrivateKey));
|
||||||
B:=GetSignInput(aJWT);
|
B:=GetSignInput(aJWT);
|
||||||
if TECDSA.SignSHA256(B,aPrivateKey,aSignature) then
|
if TECDSA.SignSHA256(B,aPrivateKey,aSignature) then
|
||||||
Result:=Base64URL.Encode(@aSignature[0],Length(aSignature),False);
|
Result:=Base64URL.Encode(@aSignature[0],Length(aSignature),False);
|
||||||
|
Loading…
Reference in New Issue
Block a user