- Timestamp:
- Sep 6, 2018 3:49:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTHttp-1.cpp
r74095 r74124 92 92 93 93 /* 94 * C.2 Basic Test - tweaked a little with 'version="1"' and Base64(RSA-SHA256()) wrapping.94 * C.2 Basic Test - tweaked a little with 'version="1"'. 95 95 */ 96 96 RTHTTP hHttp; … … 104 104 const char *pszExpect = "Signature version=\"1\",keyId=\"Test\",algorithm=\"rsa-sha256\"," 105 105 "headers=\"(request-target) host date\"," 106 "signature=\" Base64(RSA-SHA256(qdx+H7PHHDZgy4y/Ahn9Tny9V3GP6YgBPyUXMmoxWtLbHpUnXS2mg2+SbrQDMCJypxBLSPQR2aAjn7ndmw2iicw3HMbe8VfEdKFYRqzic+efkb3nndiv/x1xSHDJWeSWkx3ButlYSuBskLu6kd9Fswtemr3lgdDEmn04swr2Os0=))\"";106 "signature=\"qdx+H7PHHDZgy4y/Ahn9Tny9V3GP6YgBPyUXMmoxWtLbHpUnXS2mg2+SbrQDMCJypxBLSPQR2aAjn7ndmw2iicw3HMbe8VfEdKFYRqzic+efkb3nndiv/x1xSHDJWeSWkx3ButlYSuBskLu6kd9Fswtemr3lgdDEmn04swr2Os0=\""; 107 107 if (strcmp(pszAuth, pszExpect) != 0) 108 108 { … … 114 114 115 115 /* 116 * C.3 All Headers Test - tweaked a little with 'version="1"' and Base64(RSA-SHA256()) wrapping.116 * C.3 All Headers Test - tweaked a little with 'version="1"'. 117 117 * 118 118 * Note! Draft #10 has an incorrect signed digest. The decrypting digest … … 135 135 pszExpect = "Signature version=\"1\",keyId=\"Test\",algorithm=\"rsa-sha256\"," 136 136 "headers=\"(request-target) host date content-type digest content-length\"," 137 // bad rfc draft ? "signature=\"Base64(RSA-SHA256(jgSqYK0yKclIHfF9zdApVEbDp5eqj8C4i4X76pE+XHoxugXv7qnVrGR+30bmBgtpR39I4utq17s9ghz/2QFVxlnToYAvbSVZJ9ulLd1HQBugO0jOyn9sXOtcN7uNHBjqNCqUsnt0sw/cJA6B6nJZpyNqNyAXKdxZZItOuhIs78w=))\"";138 "signature=\" Base64(RSA-SHA256(vSdrb+dS3EceC9bcwHSo4MlyKS59iFIrhgYkz8+oVLEEzmYZZvRs8rgOp+63LEM3v+MFHB32NfpB2bEKBIvB1q52LaEUHFv120V01IL+TAD48XaERZFukWgHoBTLMhYS2Gb51gWxpeIq8knRmPnYePbF5MOkR0Zkly4zKH7s1dE=))\"";137 // bad rfc draft #10? "signature=\"jgSqYK0yKclIHfF9zdApVEbDp5eqj8C4i4X76pE+XHoxugXv7qnVrGR+30bmBgtpR39I4utq17s9ghz/2QFVxlnToYAvbSVZJ9ulLd1HQBugO0jOyn9sXOtcN7uNHBjqNCqUsnt0sw/cJA6B6nJZpyNqNyAXKdxZZItOuhIs78w=\""; 138 "signature=\"vSdrb+dS3EceC9bcwHSo4MlyKS59iFIrhgYkz8+oVLEEzmYZZvRs8rgOp+63LEM3v+MFHB32NfpB2bEKBIvB1q52LaEUHFv120V01IL+TAD48XaERZFukWgHoBTLMhYS2Gb51gWxpeIq8knRmPnYePbF5MOkR0Zkly4zKH7s1dE=\""; 139 139 if (strcmp(pszAuth, pszExpect) != 0) 140 140 {
Note:
See TracChangeset
for help on using the changeset viewer.