• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

TLS/SSL and crypto library


コミットメタ情報

リビジョンdd731474207126615679f4cc9ae772d7da990332 (tree)
日時2020-09-13 19:10:41
作者Matt Caswell <matt@open...>
コミッターMatt Caswell

ログメッセージ

Fix safestack issues in bio.h

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12781)

変更サマリ

差分

--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@
2424 /include/crypto/*_conf.h
2525 /include/openssl/asn1.h
2626 /include/openssl/asn1t.h
27+/include/openssl/bio.h
2728 /include/openssl/cmp.h
2829 /include/openssl/cms.h
2930 /include/openssl/configuration.h
--- a/build.info
+++ b/build.info
@@ -15,6 +15,7 @@ DEPEND[libssl]=libcrypto
1515 # unconditionally before anything else.
1616 DEPEND[]=include/openssl/asn1.h \
1717 include/openssl/asn1t.h \
18+ include/openssl/bio.h \
1819 include/openssl/cmp.h \
1920 include/openssl/cms.h \
2021 include/openssl/configuration.h \
@@ -36,6 +37,7 @@ DEPEND[]=include/openssl/asn1.h \
3637
3738 GENERATE[include/openssl/asn1.h]=include/openssl/asn1.h.in
3839 GENERATE[include/openssl/asn1t.h]=include/openssl/asn1t.h.in
40+GENERATE[include/openssl/bio.h]=include/openssl/bio.h.in
3941 GENERATE[include/openssl/cmp.h]=include/openssl/cmp.h.in
4042 GENERATE[include/openssl/cms.h]=include/openssl/cms.h.in
4143 GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
--- a/crypto/asn1/asn_mime.c
+++ b/crypto/asn1/asn_mime.c
@@ -19,8 +19,6 @@
1919 #include "internal/bio.h"
2020 #include "asn1_local.h"
2121
22-DEFINE_STACK_OF(BIO)
23-
2422 /*
2523 * Generalised MIME like utilities for streaming ASN1. Although many have a
2624 * PKCS7/CMS like flavour others are more general purpose.
--- a/crypto/conf/conf_def.c
+++ b/crypto/conf/conf_def.c
@@ -30,8 +30,6 @@
3030 # endif
3131 #endif
3232
33-DEFINE_STACK_OF(BIO)
34-
3533 #ifndef S_ISDIR
3634 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR)
3735 #endif
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h.in
@@ -1,4 +1,6 @@
11 /*
2+ * {- join("\n * ", @autowarntext) -}
3+ *
24 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
35 *
46 * Licensed under the Apache License 2.0 (the "License"). You may not use
@@ -6,6 +8,9 @@
68 * in the file LICENSE in the source distribution or at
79 * https://www.openssl.org/source/license.html
810 */
11+{-
12+use OpenSSL::stackhash qw(generate_stack_macros);
13+-}
914
1015 #ifndef OPENSSL_BIO_H
1116 # define OPENSSL_BIO_H
@@ -287,7 +292,10 @@ int BIO_method_type(const BIO *b);
287292 typedef int BIO_info_cb(BIO *, int, int);
288293 typedef BIO_info_cb bio_info_cb; /* backward compatibility */
289294
290-DEFINE_OR_DECLARE_STACK_OF(BIO)
295+{-
296+ generate_stack_macros("BIO");
297+-}
298+
291299
292300 /* Prefix and suffix callback in ASN1 BIO */
293301 typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,