Changeset 74064 in vbox
- Timestamp:
- Sep 4, 2018 12:37:35 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/http.h
r74060 r74064 335 335 336 336 /** 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 */ 355 RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl, 356 RTCRKEY hKey, const char *pszKeyId, uint32_t fFlags); 357 358 /** 337 359 * Tells the HTTP client instance to gather system CA certificates into a 338 360 * temporary file and use it for HTTPS connections. -
trunk/src/VBox/Runtime/generic/http-curl.cpp
r74063 r74064 2208 2208 2209 2209 2210 RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl, uint32_t fFlags,2211 RTCRKEY hKey, const char *pszKeyId )2210 RTR3DECL(int) RTHttpSignHeaders(RTHTTP hHttp, RTHTTPMETHOD enmMethod, const char *pszUrl, 2211 RTCRKEY hKey, const char *pszKeyId, uint32_t fFlags) 2212 2212 { 2213 2213 PRTHTTPINTERNAL pThis = hHttp; … … 2348 2348 if (RT_SUCCESS(rc)) 2349 2349 { 2350 Assert(cbActual == cbSigRaw); 2350 2351 RTCrPkixSignatureRelease(hSigner); 2351 2352 hSigner = NIL_RTCRPKIXSIGNATURE;
Note:
See TracChangeset
for help on using the changeset viewer.