Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ring/teddy_cloud into develop
  • Loading branch information
g3gg0 committed Aug 23, 2023
2 parents 152d0fd + c69adf2 commit e0ba1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ error_t httpServerRequestCallback(HttpConnection *connection, const char_t *uri)
char_t *subject = connection->tlsContext->client_cert_subject;
char_t *issuer = connection->tlsContext->client_cert_issuer;

if (osStrstr(issuer, "Boxine Factory SubCA") != NULL || osStrstr(issuer, "TeddyCloud") != NULL)
if (osStrstr(issuer, "Boxine Factory SubCA") != NULL || osStrstr(issuer, "TeddyCloud") != NULL || osStrstr(subject, "TeddyCloud") != NULL)
{
if (osStrlen(subject) == 15 && !osStrncmp(subject, "b'", 2) && subject[14] == '\'') // tonies standard cn with b'[MAC]'
{
Expand Down

0 comments on commit e0ba1c7

Please sign in to comment.