Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aklyuchev86 committed Jan 8, 2025
1 parent 0cf3af1 commit 629aafc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/include/userver/server/component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace components {
/// task_processor | task processor to process incoming requests | -
/// backlog | max count of new connections pending acceptance | 1024
/// tls.ca | paths to TLS CAs for client authentication | -
/// tls.cert | path to TLS server certificate chain | -
/// tls.cert | path to TLS server certificate or certificate chain | -
/// tls.private-key | path to TLS server certificate private key | -
/// tls.private-key-passphrase-name | passphrase name located in secdist's "passphrases" section | -
/// handler-defaults.max_url_size | max path/URL size or empty to not limit | 8192
Expand Down
2 changes: 1 addition & 1 deletion universal/include/userver/crypto/certificate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ using CertificatesChain = std::list<Certificate>;
/// list of 'Certificate's.
///
/// @throw crypto::KeyParseError if failed to load the certificate.
CertificatesChain LoadCertficatesChainFromString(std::string_view certificatesChain);
CertificatesChain LoadCertficatesChainFromString(std::string_view chain);

} // namespace crypto

Expand Down
4 changes: 2 additions & 2 deletions universal/src/crypto/certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Certificate Certificate::LoadFromString(std::string_view certificate) {
CertificatesChain LoadCertficatesChainFromString(std::string_view chain)
{
CertificatesChain certificates;
const std::string beginMarker = "-----BEGIN CERTIFICATE-----";
const std::string endMarker = "-----END CERTIFICATE-----";
constexpr std::string_view beginMarker = "-----BEGIN CERTIFICATE-----";
constexpr std::string_view endMarker = "-----END CERTIFICATE-----";

size_t start = 0;
while ((start = chain.find(beginMarker, start)) != std::string::npos) {
Expand Down

0 comments on commit 629aafc

Please sign in to comment.