VirtualBox

Changeset 74064 in vbox for trunk/include/iprt


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

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

File:
1 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.
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