Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bc266465
Kaydet (Commit)
bc266465
authored
Ock 03, 2015
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23143: Remove compatibility with OpenSSLs older than 0.9.8.
(now the hashlib module)
üst
5e8430d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
_hashopenssl.c
Modules/_hashopenssl.c
+0
-12
No files found.
Modules/_hashopenssl.c
Dosyayı görüntüle @
bc266465
...
...
@@ -31,10 +31,6 @@
#define HASH_OBJ_CONSTRUCTOR 0
#endif
/* Minimum OpenSSL version needed to support sha224 and higher. */
#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x00908000)
#define _OPENSSL_SUPPORTS_SHA2
#endif
typedef
struct
{
PyObject_HEAD
...
...
@@ -56,12 +52,10 @@ static PyTypeObject EVPtype;
DEFINE_CONSTS_FOR_NEW
(
md5
)
DEFINE_CONSTS_FOR_NEW
(
sha1
)
#ifdef _OPENSSL_SUPPORTS_SHA2
DEFINE_CONSTS_FOR_NEW
(
sha224
)
DEFINE_CONSTS_FOR_NEW
(
sha256
)
DEFINE_CONSTS_FOR_NEW
(
sha384
)
DEFINE_CONSTS_FOR_NEW
(
sha512
)
#endif
static
EVPobject
*
...
...
@@ -798,12 +792,10 @@ generate_hash_name_list(void)
GEN_CONSTRUCTOR
(
md5
)
GEN_CONSTRUCTOR
(
sha1
)
#ifdef _OPENSSL_SUPPORTS_SHA2
GEN_CONSTRUCTOR
(
sha224
)
GEN_CONSTRUCTOR
(
sha256
)
GEN_CONSTRUCTOR
(
sha384
)
GEN_CONSTRUCTOR
(
sha512
)
#endif
/* List of functions exported by this module */
...
...
@@ -815,12 +807,10 @@ static struct PyMethodDef EVP_functions[] = {
#endif
CONSTRUCTOR_METH_DEF
(
md5
),
CONSTRUCTOR_METH_DEF
(
sha1
),
#ifdef _OPENSSL_SUPPORTS_SHA2
CONSTRUCTOR_METH_DEF
(
sha224
),
CONSTRUCTOR_METH_DEF
(
sha256
),
CONSTRUCTOR_METH_DEF
(
sha384
),
CONSTRUCTOR_METH_DEF
(
sha512
),
#endif
{
NULL
,
NULL
}
/* Sentinel */
};
...
...
@@ -877,11 +867,9 @@ PyInit__hashlib(void)
/* these constants are used by the convenience constructors */
INIT_CONSTRUCTOR_CONSTANTS
(
md5
);
INIT_CONSTRUCTOR_CONSTANTS
(
sha1
);
#ifdef _OPENSSL_SUPPORTS_SHA2
INIT_CONSTRUCTOR_CONSTANTS
(
sha224
);
INIT_CONSTRUCTOR_CONSTANTS
(
sha256
);
INIT_CONSTRUCTOR_CONSTANTS
(
sha384
);
INIT_CONSTRUCTOR_CONSTANTS
(
sha512
);
#endif
return
m
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment