mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-17 18:12:28 +00:00
Implement tree-shaking for Python sources
This commit is contained in:
parent
81287b7ec0
commit
44c87b83ff
110 changed files with 899 additions and 1922 deletions
18
third_party/python/Modules/_hashopenssl.c
vendored
18
third_party/python/Modules/_hashopenssl.c
vendored
|
@ -1,6 +1,14 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/hashlib.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
/* Module that wraps all OpenSSL hash algorithms */
|
||||
|
||||
PYTHON_PROVIDE("_hashlib");
|
||||
|
||||
/* Module that wraps all OpenSSL hash algorithms */
|
||||
/*
|
||||
* Copyright (C) 2005-2010 Gregory P. Smith (greg@krypto.org)
|
||||
* Licensed to PSF under a Contributor Agreement.
|
||||
|
@ -12,14 +20,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/Include/hashlib.h"
|
||||
#include "third_party/python/Include/pystrhex.h"
|
||||
|
||||
|
||||
/* EVP is the preferred interface to hashing in OpenSSL */
|
||||
#include <openssl/evp.h>
|
||||
/* We use the object interface to discover what hashes OpenSSL supports. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue