Skip to content

Commit

Permalink
comment and style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Jun 5, 2024
1 parent 09fa5f9 commit 1685fec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/openssl/pkcs8.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ BSSL_NAMESPACE_END
#define PKCS8_R_UNSUPPORTED_OPTIONS 132
#define PKCS8_R_AMBIGUOUS_FRIENDLY_NAME 133

// PKCS12_R_MAC_VERIFY_FAILURE is an error code defined for OpenVPN
// PKCS12_R_MAC_VERIFY_FAILURE is an error code defined for
// compatability. It points to our equivalent for this OpenSSL error,
// |PKCS8_R_INCORRECT_PASSWORD|
#define PKCS12_R_MAC_VERIFY_FAILURE PKCS8_R_INCORRECT_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion include/openssl/rsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ BSSL_NAMESPACE_END
#define RSA_R_MISMATCHED_SIGNATURE 248

// RSA_F_RSA_OSSL_PRIVATE_ENCRYPT is a function code defined
// for OpenVPN compatibility, AWS-LC does not support them
// for compatibility. AWS-LC does not support function codes
#define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT 0

#endif // OPENSSL_HEADER_RSA_H
8 changes: 4 additions & 4 deletions include/openssl/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4895,13 +4895,13 @@ OPENSSL_EXPORT int SSL_get_shutdown(const SSL *ssl);
// peer. If not applicable, it returns zero.
OPENSSL_EXPORT uint16_t SSL_get_peer_signature_algorithm(const SSL *ssl);

// SSL_get_peer_signature_nid sets *psig_nid to the NID of the digest used by
// the peer to sign TLS messages. Returns 1 on success and 0 on failure.
// SSL_get_peer_signature_nid sets |psig_nid| to the NID of the digest used by
// the peer to sign TLS messages. Returns one on success and zero on failure.
OPENSSL_EXPORT int SSL_get_peer_signature_nid(const SSL *ssl, int *psig_nid);

// SSL_get_peer_signature_type_nid sets *psigtype_nid to the signature type
// SSL_get_peer_signature_type_nid sets |psigtype_nid| to the signature type
// used by the peer to sign TLS messages. The signature type is the NID of the
// public key type used for signing. Returns 1 on success and 0 on failure.
// public key type used for signing. Returns one on success and zero on failure.
OPENSSL_EXPORT int SSL_get_peer_signature_type_nid(const SSL *ssl,
int *psigtype_nid);

Expand Down
2 changes: 1 addition & 1 deletion ssl/ssl_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ int SSL_get_peer_signature_nid(const SSL *ssl, int *psig_nid) {
}

const EVP_MD *digest_type = SSL_get_signature_algorithm_digest(sig_alg);
if (digest_type == nullptr) {
if (digest_type == NULL) {
return 0;
}

Expand Down

0 comments on commit 1685fec

Please sign in to comment.