VirtualBox

Changeset 74124 in vbox for trunk/src


Ignore:
Timestamp:
Sep 6, 2018 3:49:45 PM (6 years ago)
Author:
vboxsync
Message:

tstRTHttp-1: Adjustments. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTHttp-1.cpp

    r74095 r74124  
    9292
    9393    /*
    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"'.
    9595     */
    9696    RTHTTP hHttp;
     
    104104    const char *pszExpect = "Signature version=\"1\",keyId=\"Test\",algorithm=\"rsa-sha256\","
    105105                            "headers=\"(request-target) host date\","
    106                             "signature=\"Base64(RSA-SHA256(qdx+H7PHHDZgy4y/Ahn9Tny9V3GP6YgBPyUXMmoxWtLbHpUnXS2mg2+SbrQDMCJypxBLSPQR2aAjn7ndmw2iicw3HMbe8VfEdKFYRqzic+efkb3nndiv/x1xSHDJWeSWkx3ButlYSuBskLu6kd9Fswtemr3lgdDEmn04swr2Os0=))\"";
     106                            "signature=\"qdx+H7PHHDZgy4y/Ahn9Tny9V3GP6YgBPyUXMmoxWtLbHpUnXS2mg2+SbrQDMCJypxBLSPQR2aAjn7ndmw2iicw3HMbe8VfEdKFYRqzic+efkb3nndiv/x1xSHDJWeSWkx3ButlYSuBskLu6kd9Fswtemr3lgdDEmn04swr2Os0=\"";
    107107    if (strcmp(pszAuth, pszExpect) != 0)
    108108    {
     
    114114
    115115    /*
    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"'.
    117117     *
    118118     * Note! Draft #10 has an incorrect signed digest.  The decrypting digest
     
    135135    pszExpect = "Signature version=\"1\",keyId=\"Test\",algorithm=\"rsa-sha256\","
    136136                "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=\"";
    139139    if (strcmp(pszAuth, pszExpect) != 0)
    140140    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette