VirtualBox

Changeset 74064 in vbox


Ignore:
Timestamp:
Sep 4, 2018 12:37:35 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/http: Added prototype for RTHttpSignHeaders. bugref:9167

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/http.h

    r74060 r74064  
    335335
    336336/**
     337 * Sign all headers present according to pending "Signing HTTP Messages" RFC.
     338 *
     339 * Currently hardcoded RSA-SHA-256 algorithm choice.
     340 *
     341 * @returns IPRT status code.
     342 * @param   hHttp           The HTTP client handle.
     343 * @param   enmMethod       The HTTP method that will be used for the request.
     344 * @param   pszUrl          The target URL for the request.
     345 * @param   hKey            The RSA key to use when signing.
     346 * @param   pszKeyId        The key ID string corresponding to @a hKey.
     347 * @param   fFlags          Reserved for future, MBZ.
     348 *
     349 * @note    Caller is responsible for making all desired fields are present before
     350 *          making the call.
     351 *
     352 * @remarks Latest RFC draft at the time of writing:
     353 *          https://tools.ietf.org/html/draft-cavage-http-signatures-10
     354 */
     355RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl,
     356                                RTCRKEY hKey, const char *pszKeyId, uint32_t fFlags);
     357
     358/**
    337359 * Tells the HTTP client instance to gather system CA certificates into a
    338360 * temporary file and use it for HTTPS connections.
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r74063 r74064  
    22082208
    22092209
    2210 RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl, uint32_t fFlags,
    2211                                 RTCRKEY hKey, const char *pszKeyId)
     2210RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl,
     2211                                RTCRKEY hKey, const char *pszKeyId, uint32_t fFlags)
    22122212{
    22132213    PRTHTTPINTERNAL pThis = hHttp;
     
    23482348                if (RT_SUCCESS(rc))
    23492349                {
     2350                    Assert(cbActual == cbSigRaw);
    23502351                    RTCrPkixSignatureRelease(hSigner);
    23512352                    hSigner = NIL_RTCRPKIXSIGNATURE;
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