VirtualBox

source: vbox/trunk/src/libs/curl-7.83.1/lib/curl_sha256.h@ 95312

Last change on this file since 95312 was 95312, checked in by vboxsync, 3 years ago

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#ifndef HEADER_CURL_SHA256_H
2#define HEADER_CURL_SHA256_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 2017, Florin Petriuc, <[email protected]>
11 * Copyright (C) 2018 - 2022, Daniel Stenberg, <[email protected]>, et al.
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at https://curl.se/docs/copyright.html.
16 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 ***************************************************************************/
25
26#ifndef CURL_DISABLE_CRYPTO_AUTH
27#include "curl_hmac.h"
28
29extern const struct HMAC_params Curl_HMAC_SHA256[1];
30
31#ifdef USE_WOLFSSL
32/* SHA256_DIGEST_LENGTH is an enum value in wolfSSL. Need to import it from
33 * sha.h*/
34#include <wolfssl/options.h>
35#include <wolfssl/openssl/sha.h>
36#else
37#define SHA256_DIGEST_LENGTH 32
38#endif
39
40CURLcode Curl_sha256it(unsigned char *outbuffer, const unsigned char *input,
41 const size_t len);
42
43#endif
44
45#endif /* HEADER_CURL_SHA256_H */
Note: See TracBrowser for help on using the repository browser.

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