Fix safestack issues in ui.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)
This commit is contained in:
Matt Caswell 2020-09-03 16:39:36 +01:00
parent add3392727
commit 9cedfc90ce
4 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -41,6 +41,7 @@
/include/openssl/safestack.h
/include/openssl/srp.h
/include/openssl/ssl.h
/include/openssl/ui.h
/include/openssl/x509.h
/include/openssl/x509v3.h
/include/openssl/x509_vfy.h

View File

@ -32,6 +32,7 @@ DEPEND[]=include/openssl/asn1.h \
include/openssl/safestack.h \
include/openssl/srp.h \
include/openssl/ssl.h \
include/openssl/ui.h \
include/openssl/x509.h \
include/openssl/x509v3.h \
include/openssl/x509_vfy.h \
@ -57,6 +58,7 @@ GENERATE[include/openssl/pkcs7.h]=include/openssl/pkcs7.h.in
GENERATE[include/openssl/safestack.h]=include/openssl/safestack.h.in
GENERATE[include/openssl/srp.h]=include/openssl/srp.h.in
GENERATE[include/openssl/ssl.h]=include/openssl/ssl.h.in
GENERATE[include/openssl/ui.h]=include/openssl/ui.h.in
GENERATE[include/openssl/x509.h]=include/openssl/x509.h.in
GENERATE[include/openssl/x509v3.h]=include/openssl/x509v3.h.in
GENERATE[include/openssl/x509_vfy.h]=include/openssl/x509_vfy.h.in

View File

@ -15,8 +15,6 @@
#include <openssl/err.h>
#include "ui_local.h"
DEFINE_STACK_OF(UI_STRING)
UI *UI_new(void)
{
return UI_new_method(NULL);

View File

@ -1,4 +1,6 @@
/*
* {- join("\n * ", @autowarntext) -}
*
* Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
@ -7,6 +9,10 @@
* https://www.openssl.org/source/license.html
*/
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
#ifndef OPENSSL_UI_H
# define OPENSSL_UI_H
# pragma once
@ -285,7 +291,9 @@ const UI_METHOD *UI_null(void);
*/
typedef struct ui_string_st UI_STRING;
DEFINE_OR_DECLARE_STACK_OF(UI_STRING)
{-
generate_stack_macros("UI_STRING");
-}
/*
* The different types of strings that are currently supported. This is only