我正在尝试按照 SAP 提供的示例在 .NET 应用程序中解析 SAP Login Ticket(我从 MYSAPSSO2 cookie 获取票证字符串)。两者sapssoext.dll
和sapsecu.dll
都放在 System32 文件夹中,但我收到一个错误,编号为 9。
这是票证字符串
AjExMDAgAA1wb3J0YWw6QVRJQUFNiAATYmFzaWNhdXRoZW50aWNhdGlvbgEABkFUSUFBTQIAAzAwMAMAA1BNRAQADDIwMTMwMTA3MTAzNAUABAAAAAgKAAZBVElBQU3/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA1BNRDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwMTA3MTAzNDE1WjAjBgkqhkiG9w0BCQQxFgQUYsJ!74Po!/9lrPqttjZXqcfBSTAwCQYHKoZIzjgEAwQvMC0CFD55F60sUc2gyG0gZpbdtLqJ6MBkAhUAiQ87p3inLvWchkphT5Lfl7PJ1mA
这是 trace.txt 文件中记录的详细信息
---------------------------------------------------
trc file: "trace.txt", trc level: 1, release: "720"
---------------------------------------------------
[Thr 2172] Mon Jan 07 13:51:44 2013
[Thr 2172] Call function MySapLoadTicketKey
[Thr 2172] Ticket key as new PSE loaded
[Thr 2172] Cleanup of function, memory PSE created
[Thr 2172] Leave function MySapLoadTicketKey with rc = 0.
[Thr 2172] Mon Jan 07 13:52:15 2013
[Thr 2172] MySapEvalLogonTicketEx was called.
[Thr 2172] Unconverted ticket is the following: >>>AjExMDAgAA1wb3J0YWw6QVRJQUFNiAATYmFzaWNhdXRoZW50aWNhdGlvbgEABkFUSUFBTQIAAzAwMAMAA1BNRAQADDIwMTMwMTA3MTAzNAUABAAAAAgKAAZBVElBQU3/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA1BNRDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwMTA3MTAzNDE1WjAjBgkqhkiG9w0BCQQxFgQUYsJ!74Po!/9lrPqttjZXqcfBSTAwCQYHKoZIzjgEAwQvMC0CFD55F60sUc2gyG0gZpbdtLqJ6MBkAhUAiQ87p3inLvWchkphT5Lfl7PJ1mA=<<<
[Thr 2172] Initialized variables...
[Thr 2172] *** ERROR => Struct size 128 is not 128 [ssoxxext.c 459]
[Thr 2172] *** ERROR => MySapEvalLogonTicketEx returns 9. [ssoxxext.c 958]
[Thr 2172] End of function MySapEvalLogonTicketEx.
看来这是“ssoxxext.c”中的内部错误......有什么建议吗?