You are not logged in.
Pages: 1
Hi,
I'm fighting with this problem:
Mormot1 sources from 25.11.2021.
Delphi Seattle.
Client server app (TSQLHttpClient) tested also locally (TSQLRestClientDB) with the same error
- on 32bit all works fine
- compiled to 64bit can't login with windows auth (via SetUser('','')).
When debugging (screenshots from my breakpoints):
- https://gyazo.com/3f5bbb2422c26828a0ec898318d4bd5a
- https://gyazo.com/2a7fa19ddfcfa03f80ac8e460b7cf53f
- error coming from F8 in function Base64ToBinSafe on last "End":
https://gyazo.com/1f3613f6f9515ed6ff04e3693b9b5105
I will be grateful for any hint.
Best Regards
Offline
Of course:
pic1: http://c-swde.com/p1.png
pic2: http://c-swde.com/p2.png
pic3: http://c-swde.com/p3.png
Thank you
Offline
There is a bug in SecDecrypt.
Documentation says that "encrypted message is decrypted in place, overwriting the original contents of its buffer" when we pass SECBUFFER_DATA. But we pass SECBUFFER_STREAM and empty SECBUFFER_DATA and expect that provider allocate memory for SECBUFFER_DATA. But it does not. So call to FreeContextBuffer fails.
I will investigate further and make a patch.
juwo, try remove line
FreeContextBuffer(InBuf[1].pvBuffer);
from the end of function SecDecrypt (SynSSPI.pas). This should solve your problem.
Online
Pull request:
https://github.com/synopse/mORMot/pull/418
Online
There is a bug in SecDecrypt.
juwo, try remove line
FreeContextBuffer(InBuf[1].pvBuffer);
from the end of function SecDecrypt (SynSSPI.pas). This should solve your problem.
Yes, this is it!
ab, Chaa, many, many thanks for help.
Special statement to ab:
i'm impressed what is going on in mormot world. Your (and other mormot devs) work, have a big impact on my professional live. I think not only my. So, thank you one more time (with small danation for today dinner ).
Last edited by juwo (2021-12-03 08:26:42)
Offline
Pages: 1