aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/cryptography/_cffi_src/openssl/pkcs7.py
diff options
context:
space:
mode:
authorolegts <olegts@yandex-team.ru>2022-02-10 16:48:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:23 +0300
commit5eefa17021221fd267f1dd5f9d63d2493d131a8a (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/python/cryptography/_cffi_src/openssl/pkcs7.py
parent30983fb2586f6904aaf6a5d6ef2b445cbaec1f44 (diff)
downloadydb-5eefa17021221fd267f1dd5f9d63d2493d131a8a.tar.gz
Restoring authorship annotation for <olegts@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/cryptography/_cffi_src/openssl/pkcs7.py')
-rw-r--r--contrib/python/cryptography/_cffi_src/openssl/pkcs7.py136
1 files changed, 68 insertions, 68 deletions
diff --git a/contrib/python/cryptography/_cffi_src/openssl/pkcs7.py b/contrib/python/cryptography/_cffi_src/openssl/pkcs7.py
index 96932491a4..c22263dfe6 100644
--- a/contrib/python/cryptography/_cffi_src/openssl/pkcs7.py
+++ b/contrib/python/cryptography/_cffi_src/openssl/pkcs7.py
@@ -1,63 +1,63 @@
-# This file is dual licensed under the terms of the Apache License, Version
-# 2.0, and the BSD License. See the LICENSE file in the root of this repository
-# for complete details.
-
-from __future__ import absolute_import, division, print_function
-
-INCLUDES = """
-#include <openssl/pkcs7.h>
-"""
-
-TYPES = """
-typedef struct {
- Cryptography_STACK_OF_X509 *cert;
- Cryptography_STACK_OF_X509_CRL *crl;
- ...;
-} PKCS7_SIGNED;
-
-typedef struct {
- Cryptography_STACK_OF_X509 *cert;
- Cryptography_STACK_OF_X509_CRL *crl;
- ...;
-} PKCS7_SIGN_ENVELOPE;
-
-typedef ... PKCS7_DIGEST;
-typedef ... PKCS7_ENCRYPT;
-typedef ... PKCS7_ENVELOPE;
+# This file is dual licensed under the terms of the Apache License, Version
+# 2.0, and the BSD License. See the LICENSE file in the root of this repository
+# for complete details.
+
+from __future__ import absolute_import, division, print_function
+
+INCLUDES = """
+#include <openssl/pkcs7.h>
+"""
+
+TYPES = """
+typedef struct {
+ Cryptography_STACK_OF_X509 *cert;
+ Cryptography_STACK_OF_X509_CRL *crl;
+ ...;
+} PKCS7_SIGNED;
+
+typedef struct {
+ Cryptography_STACK_OF_X509 *cert;
+ Cryptography_STACK_OF_X509_CRL *crl;
+ ...;
+} PKCS7_SIGN_ENVELOPE;
+
+typedef ... PKCS7_DIGEST;
+typedef ... PKCS7_ENCRYPT;
+typedef ... PKCS7_ENVELOPE;
typedef ... PKCS7_SIGNER_INFO;
-
-typedef struct {
- ASN1_OBJECT *type;
- union {
- char *ptr;
- ASN1_OCTET_STRING *data;
- PKCS7_SIGNED *sign;
- PKCS7_ENVELOPE *enveloped;
- PKCS7_SIGN_ENVELOPE *signed_and_enveloped;
- PKCS7_DIGEST *digest;
- PKCS7_ENCRYPT *encrypted;
- ASN1_TYPE *other;
- } d;
- ...;
-} PKCS7;
-
-static const int PKCS7_BINARY;
-static const int PKCS7_DETACHED;
-static const int PKCS7_NOATTR;
-static const int PKCS7_NOCERTS;
-static const int PKCS7_NOCHAIN;
-static const int PKCS7_NOINTERN;
-static const int PKCS7_NOSIGS;
-static const int PKCS7_NOSMIMECAP;
-static const int PKCS7_NOVERIFY;
-static const int PKCS7_STREAM;
-static const int PKCS7_TEXT;
+
+typedef struct {
+ ASN1_OBJECT *type;
+ union {
+ char *ptr;
+ ASN1_OCTET_STRING *data;
+ PKCS7_SIGNED *sign;
+ PKCS7_ENVELOPE *enveloped;
+ PKCS7_SIGN_ENVELOPE *signed_and_enveloped;
+ PKCS7_DIGEST *digest;
+ PKCS7_ENCRYPT *encrypted;
+ ASN1_TYPE *other;
+ } d;
+ ...;
+} PKCS7;
+
+static const int PKCS7_BINARY;
+static const int PKCS7_DETACHED;
+static const int PKCS7_NOATTR;
+static const int PKCS7_NOCERTS;
+static const int PKCS7_NOCHAIN;
+static const int PKCS7_NOINTERN;
+static const int PKCS7_NOSIGS;
+static const int PKCS7_NOSMIMECAP;
+static const int PKCS7_NOVERIFY;
+static const int PKCS7_STREAM;
+static const int PKCS7_TEXT;
static const int PKCS7_PARTIAL;
-"""
-
-FUNCTIONS = """
-void PKCS7_free(PKCS7 *);
-PKCS7 *PKCS7_sign(X509 *, EVP_PKEY *, Cryptography_STACK_OF_X509 *,
+"""
+
+FUNCTIONS = """
+void PKCS7_free(PKCS7 *);
+PKCS7 *PKCS7_sign(X509 *, EVP_PKEY *, Cryptography_STACK_OF_X509 *,
BIO *, int);
int SMIME_write_PKCS7(BIO *, PKCS7 *, BIO *, int);
int PEM_write_bio_PKCS7_stream(BIO *, PKCS7 *, BIO *, int);
@@ -66,14 +66,14 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *, X509 *, EVP_PKEY *,
int PKCS7_final(PKCS7 *, BIO *, int);
/* Included verify due to external consumer, see
https://github.com/pyca/cryptography/issues/5433 */
-int PKCS7_verify(PKCS7 *, Cryptography_STACK_OF_X509 *, X509_STORE *, BIO *,
- BIO *, int);
+int PKCS7_verify(PKCS7 *, Cryptography_STACK_OF_X509 *, X509_STORE *, BIO *,
+ BIO *, int);
PKCS7 *SMIME_read_PKCS7(BIO *, BIO **);
-
-int PKCS7_type_is_signed(PKCS7 *);
-int PKCS7_type_is_enveloped(PKCS7 *);
-int PKCS7_type_is_signedAndEnveloped(PKCS7 *);
-int PKCS7_type_is_data(PKCS7 *);
-"""
-
-CUSTOMIZATIONS = ""
+
+int PKCS7_type_is_signed(PKCS7 *);
+int PKCS7_type_is_enveloped(PKCS7 *);
+int PKCS7_type_is_signedAndEnveloped(PKCS7 *);
+int PKCS7_type_is_data(PKCS7 *);
+"""
+
+CUSTOMIZATIONS = ""