[Bug 54687] New: CertGetNameStringW with dwType=CERT_NAME_ATTR_TYPE and pvTypePara missing additional fallbacks
https://bugs.winehq.org/show_bug.cgi?id=54687 Bug ID: 54687 Summary: CertGetNameStringW with dwType=CERT_NAME_ATTR_TYPE and pvTypePara missing additional fallbacks Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs(a)winehq.org Reporter: twhitehead(a)gmail.com Distribution: --- Created attachment 74198 --> https://bugs.winehq.org/attachment.cgi?id=74198 Small program to test certificates for fallback behaviour What happens when you call CertGetNameStringW with dwType=CERT_NAME_ATTR_TYPE and pvTypePara=NULL is undocumented. Testing with Windows reveals that it returns the first existing name entry for email, CN, OU, or O. Wine only tries to return email. This results in the LibOVR runtime dll failing to verify as reported here https://github.com/LibreVR/Revive/issues/1571#issuecomment-1465240925 I have attached a short Windows program you can try this out for yourself. You can generate certificates for it by running $ openssl req -x509 -newkey rsa:2048 -keyout cert.key -days 1825 -outform der -out cert.der and then running the program and passing them to it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 --- Comment #1 from Tyson Whitehead <twhitehead(a)gmail.com> --- Just a note that I put together a patch for this and submitted it https://gitlab.winehq.org/wine/wine/-/merge_requests/2403 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Zeb Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|CertGetNameStringW with |LibreVR Revive fails to run |dwType=CERT_NAME_ATTR_TYPE |(CertGetNameStringW with |and pvTypePara missing |dwType=CERT_NAME_ATTR_TYPE |additional fallbacks |and pvTypePara missing | |additional fallbacks) Version|unspecified |8.3 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Tyson Whitehead <twhitehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #2 from Tyson Whitehead <twhitehead(a)gmail.com> --- Patch was merged upstream, so closing this now. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Hans Leidekker <hans(a)meelstraat.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |01c69eb3023d2b85827020a8da8 | |bb43c19560450 --- Comment #3 from Hans Leidekker <hans(a)meelstraat.net> --- Fixed with 01c69eb3023d2b85827020a8da8bb43c19560450. Thanks! -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 8.5. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54687 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.0.x |--- --- Comment #5 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 8.0.x milestone from bug fixes included in 8.0.2. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla