Skip to content

Commit

Permalink
Avoid AIX compiler issue by making the macro argument names not match…
Browse files Browse the repository at this point in the history
… any substring

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from #12767)
  • Loading branch information
jon-oracle authored and slontis committed Sep 3, 2020
1 parent 6f04bcc commit b48ca22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions providers/baseprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ static int base_get_params(void *provctx, OSSL_PARAM params[])
}

static const OSSL_ALGORITHM base_encoder[] = {
#define ENCODER(name, fips, format, type, func_table) \
#define ENCODER(name, _fips, _format, _type, func_table) \
{ name, \
"provider=base,fips=" fips ",format=" format ",type=" type, \
"provider=base,fips=" _fips ",format=" _format ",type=" _type, \
(func_table) }

#include "encoders.inc"
Expand All @@ -76,9 +76,9 @@ static const OSSL_ALGORITHM base_encoder[] = {
#undef ENCODER

static const OSSL_ALGORITHM base_decoder[] = {
#define DECODER(name, fips, input, func_table) \
#define DECODER(name, _fips, _input, func_table) \
{ name, \
"provider=base,fips=" fips ",input=" input, \
"provider=base,fips=" _fips ",input=" _input, \
(func_table) }

#include "decoders.inc"
Expand Down
8 changes: 4 additions & 4 deletions providers/defltprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ static const OSSL_ALGORITHM deflt_keymgmt[] = {
};

static const OSSL_ALGORITHM deflt_encoder[] = {
#define ENCODER(name, fips, format, type, func_table) \
#define ENCODER(name, _fips, _format, _type, func_table) \
{ name, \
"provider=default,fips=" fips ",format=" format ",type=" type, \
"provider=default,fips=" _fips ",format=" _format ",type=" _type, \
(func_table) }

#include "encoders.inc"
Expand All @@ -423,9 +423,9 @@ static const OSSL_ALGORITHM deflt_encoder[] = {
#undef ENCODER

static const OSSL_ALGORITHM deflt_decoder[] = {
#define DECODER(name, fips, input, func_table) \
#define DECODER(name, _fips, _input, func_table) \
{ name, \
"provider=default,fips=" fips ",input=" input, \
"provider=default,fips=" _fips ",input=" _input, \
(func_table) }

#include "decoders.inc"
Expand Down

0 comments on commit b48ca22

Please sign in to comment.