https://bugs.winehq.org/show_bug.cgi?id=57492
Bug ID: 57492 Summary: Players can't join Astroneer dedicated server with enabled encryption because BCryptExportKey encryption of key not yet supported Product: Wine Version: 9.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: joejoetv@joejoetv.de Distribution: ---
The problem occurs when running an Astroneer dedicated server or the game client using WINE while having encryption not disabled on at least one side (which is required from some platforms to join). In that case, when a player tries to join, they will not be able to connect and the following message is printed by WINE:
``` 0170:fixme:bcrypt:BCryptExportKey encryption of key not yet supported ```
This was tested using WINE staging 9.22 and GnuTLS 3.8.3 (which was causing problems before this issue) and a game client running on Windows.
https://bugs.winehq.org/show_bug.cgi?id=57492
joejoetv@joejoetv.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joejoetv@joejoetv.de
https://bugs.winehq.org/show_bug.cgi?id=57492
Ker noa blue-t@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |blue-t@web.de
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Thanks. Can you attach a WINEDEBUG=+bcrypt log?
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #2 from joejoetv@joejoetv.de --- Created attachment 77519 --> https://bugs.winehq.org/attachment.cgi?id=77519 Log of starting the dedicated server with WINEDEBUG=+bcrypt
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #3 from joejoetv@joejoetv.de --- (In reply to Hans Leidekker from comment #1)
Thanks. Can you attach a WINEDEBUG=+bcrypt log?
Sure, I've attached the output that was created when running the dedicated server with the wine option and letting a player try to join, which causes the error to be printed.
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- Created attachment 77520 --> https://bugs.winehq.org/attachment.cgi?id=77520 patch
This patch adds a couple of traces. Would you be able to apply this and get another WINEDEBUG=+bcrypt log?
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #5 from joejoetv@joejoetv.de --- Created attachment 77522 --> https://bugs.winehq.org/attachment.cgi?id=77522 Log of starting the dedicated server with WINEDEBUG=+bcrypt using the provided patch
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #6 from joejoetv@joejoetv.de --- (In reply to Hans Leidekker from comment #4)
Created attachment 77520 [details] patch
This patch adds a couple of traces. Would you be able to apply this and get another WINEDEBUG=+bcrypt log?
I applied the patch to current WINE git and ran the dedicated server with the compiled wine (version wine-9.22-123-gde071d76c45). This is my first time compiling WINE, so I hope I didn't screw it up somehow. The output log can be found in the new attachement I added. I also added a note to the log at the point at which the player joined.
If I need to do anything different or the patch didn't work correctly, please tell me, so I can try to fix it.
Thanks in advance!
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #7 from joejoetv@joejoetv.de --- (In reply to Hans Leidekker from comment #4)
Created attachment 77520 [details] patch
This patch adds a couple of traces. Would you be able to apply this and get another WINEDEBUG=+bcrypt log?
Sorry to bump this, but have you had the time to look at the logs I send and did that help in any way?
Can I do something else to help resolve this issue, as it would be very beneficial for the dedicated server community for Astroneer?
Thanks in advance!
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #8 from Hans Leidekker hans@meelstraat.net --- (In reply to joejoetv from comment #7)
(In reply to Hans Leidekker from comment #4)
Created attachment 77520 [details] patch
This patch adds a couple of traces. Would you be able to apply this and get another WINEDEBUG=+bcrypt log?
Sorry to bump this, but have you had the time to look at the logs I send and did that help in any way?
Can I do something else to help resolve this issue, as it would be very beneficial for the dedicated server community for Astroneer?
The log reveals that it wants to export an encrypted AES key using the Rfc3565KeyWrapBlob format. I don't have time to work on this at the moment. Patches are welcome.
https://bugs.winehq.org/show_bug.cgi?id=57492
--- Comment #9 from joejoetv@joejoetv.de --- (In reply to Hans Leidekker from comment #8)
(In reply to joejoetv from comment #7)
(In reply to Hans Leidekker from comment #4)
Created attachment 77520 [details] patch
This patch adds a couple of traces. Would you be able to apply this and get another WINEDEBUG=+bcrypt log?
Sorry to bump this, but have you had the time to look at the logs I send and did that help in any way?
Can I do something else to help resolve this issue, as it would be very beneficial for the dedicated server community for Astroneer?
The log reveals that it wants to export an encrypted AES key using the Rfc3565KeyWrapBlob format. I don't have time to work on this at the moment. Patches are welcome.
Thank you for the reply and I did not mean to
I don't think I have enough knowledge of the WINE codebase or the Windows APIs to contribute here (at least not currently), but I'm glad that the logs at least gave something away.
Thank you for your work anyway and I did not mean to rush.