Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
23b84e5b
Unverified
Commit
23b84e5b
authored
Aug 01, 2024
by
Me No Dev
Committed by
GitHub
Aug 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ssl): Add size arg to NetworkClientSecure::setCACertBundle (#10101)
parent
2aa4828d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libraries/NetworkClientSecure/src/NetworkClientSecure.cpp
libraries/NetworkClientSecure/src/NetworkClientSecure.cpp
+3
-3
libraries/NetworkClientSecure/src/NetworkClientSecure.h
libraries/NetworkClientSecure/src/NetworkClientSecure.h
+1
-1
No files found.
libraries/NetworkClientSecure/src/NetworkClientSecure.cpp
View file @
23b84e5b
...
@@ -339,9 +339,9 @@ void NetworkClientSecure::setCACert(const char *rootCA) {
...
@@ -339,9 +339,9 @@ void NetworkClientSecure::setCACert(const char *rootCA) {
_use_insecure
=
false
;
_use_insecure
=
false
;
}
}
void
NetworkClientSecure
::
setCACertBundle
(
const
uint8_t
*
bundle
)
{
void
NetworkClientSecure
::
setCACertBundle
(
const
uint8_t
*
bundle
,
size_t
size
)
{
if
(
bundle
!=
NULL
)
{
if
(
bundle
!=
NULL
&&
size
>
0
)
{
esp_crt_bundle_set
(
bundle
,
size
of
(
bundle
)
);
esp_crt_bundle_set
(
bundle
,
size
);
attach_ssl_certificate_bundle
(
sslclient
.
get
(),
true
);
attach_ssl_certificate_bundle
(
sslclient
.
get
(),
true
);
_use_ca_bundle
=
true
;
_use_ca_bundle
=
true
;
}
else
{
}
else
{
...
...
libraries/NetworkClientSecure/src/NetworkClientSecure.h
View file @
23b84e5b
...
@@ -73,7 +73,7 @@ public:
...
@@ -73,7 +73,7 @@ public:
void
setCertificate
(
const
char
*
client_ca
);
void
setCertificate
(
const
char
*
client_ca
);
void
setPrivateKey
(
const
char
*
private_key
);
void
setPrivateKey
(
const
char
*
private_key
);
bool
loadCACert
(
Stream
&
stream
,
size_t
size
);
bool
loadCACert
(
Stream
&
stream
,
size_t
size
);
void
setCACertBundle
(
const
uint8_t
*
bundle
);
void
setCACertBundle
(
const
uint8_t
*
bundle
,
size_t
size
);
bool
loadCertificate
(
Stream
&
stream
,
size_t
size
);
bool
loadCertificate
(
Stream
&
stream
,
size_t
size
);
bool
loadPrivateKey
(
Stream
&
stream
,
size_t
size
);
bool
loadPrivateKey
(
Stream
&
stream
,
size_t
size
);
bool
verify
(
const
char
*
fingerprint
,
const
char
*
domain_name
);
bool
verify
(
const
char
*
fingerprint
,
const
char
*
domain_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment