Skip to content

Commit

Permalink
Changing from local to public for some parts of the API.
Browse files Browse the repository at this point in the history
This is done to make it possible to use none Botan private keys when signing certificates.
  • Loading branch information
larssilven committed Sep 20, 2024
1 parent 0639e82 commit df7818c
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/lib/asn1/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ asn1_obj.h
der_enc.h
oids.h
ber_dec.h
pss_params.h
</header:public>

<header:internal>
oid_map.h
pss_params.h
</header:internal>
2 changes: 1 addition & 1 deletion src/lib/asn1/pss_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Botan is released under the Simplified BSD License (see license.txt)
*/

#include <botan/internal/pss_params.h>
#include <botan/pss_params.h>

#include <botan/ber_dec.h>
#include <botan/der_enc.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/asn1/pss_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Botan {

class PSS_Params final : public ASN1_Object {
class BOTAN_PUBLIC_API(3, 6) PSS_Params final : public ASN1_Object {
public:
static PSS_Params from_emsa_name(std::string_view emsa_name);

Expand Down
5 changes: 1 addition & 4 deletions src/lib/prov/pkcs11/info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ pubkey
pk_pad
</requires>

<header:internal>
p11_mechanism.h
</header:internal>

<header:external>
pkcs11.h
pkcs11f.h
Expand All @@ -34,4 +30,5 @@ p11_randomgenerator.h
p11_rsa.h
p11_types.h
p11_x509.h
p11_mechanism.h
</header:public>
2 changes: 1 addition & 1 deletion src/lib/prov/pkcs11/p11_ecdh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#if defined(BOTAN_HAS_ECDH)

#include <botan/der_enc.h>
#include <botan/p11_mechanism.h>
#include <botan/pk_ops.h>
#include <botan/rng.h>
#include <botan/internal/p11_mechanism.h>

namespace Botan::PKCS11 {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/prov/pkcs11/p11_ecdsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#if defined(BOTAN_HAS_ECDSA)

#include <botan/p11_mechanism.h>
#include <botan/pk_ops.h>
#include <botan/rng.h>
#include <botan/internal/keypair.h>
#include <botan/internal/p11_mechanism.h>

namespace Botan::PKCS11 {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/prov/pkcs11/p11_mechanism.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Botan is released under the Simplified BSD License (see license.txt)
*/

#include <botan/internal/p11_mechanism.h>
#include <botan/p11_mechanism.h>

#include <botan/internal/fmt.h>
#include <botan/internal/parsing.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/prov/pkcs11/p11_mechanism.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Botan::PKCS11 {
* for RSA (encryption/decryption, signature/verification)
* and EC (ECDSA signature/verification, ECDH key derivation).
*/
class MechanismWrapper final {
class BOTAN_PUBLIC_API(3, 6) MechanismWrapper final {
public:
/// @param mechanism_type the CK_MECHANISM_TYPE for the `mechanism` field of the CK_MECHANISM struct
explicit MechanismWrapper(MechanismType mechanism_type);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/prov/pkcs11/p11_rsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

#if defined(BOTAN_HAS_RSA)

#include <botan/p11_mechanism.h>
#include <botan/pubkey.h>
#include <botan/rng.h>
#include <botan/internal/blinding.h>
#include <botan/internal/p11_mechanism.h>
#include <botan/internal/pk_ops_impl.h>

namespace Botan::PKCS11 {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pubkey/pubkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include <botan/der_enc.h>
#include <botan/mem_ops.h>
#include <botan/pk_ops.h>
#include <botan/pss_params.h>
#include <botan/rng.h>
#include <botan/internal/ct_utils.h>
#include <botan/internal/fmt.h>
#include <botan/internal/parsing.h>
#include <botan/internal/pss_params.h>
#include <botan/internal/stl_util.h>

namespace Botan {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pubkey/rsa/rsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <botan/ber_dec.h>
#include <botan/der_enc.h>
#include <botan/pss_params.h>
#include <botan/reducer.h>
#include <botan/internal/blinding.h>
#include <botan/internal/divide.h>
Expand All @@ -19,7 +20,6 @@
#include <botan/internal/monty_exp.h>
#include <botan/internal/parsing.h>
#include <botan/internal/pk_ops_impl.h>
#include <botan/internal/pss_params.h>
#include <botan/internal/workfactor.h>

#if defined(BOTAN_HAS_THREAD_UTILS)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tls/tls_signature_scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <botan/ec_group.h>
#include <botan/hash.h>
#include <botan/hex.h>
#include <botan/pss_params.h>
#include <botan/tls_exceptn.h>
#include <botan/tls_version.h>
#include <botan/internal/pss_params.h>
#include <botan/internal/stl_util.h>

namespace Botan::TLS {
Expand Down

0 comments on commit df7818c

Please sign in to comment.