mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:49:31 +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
|
||||
Result:='';
|
||||
aPrivateKey:=Default(TECCPrivateKey);
|
||||
Move(aKey.AsPointer,aPrivateKey,Sizeof(aPrivateKey));
|
||||
Move(aKey.AsPointer^,aPrivateKey,Sizeof(aPrivateKey));
|
||||
B:=GetSignInput(aJWT);
|
||||
if TECDSA.SignSHA256(B,aPrivateKey,aSignature) then
|
||||
Result:=Base64URL.Encode(@aSignature[0],Length(aSignature),False);
|
||||
|
Loading…
Reference in New Issue
Block a user