Skip to content

Commit

Permalink
Remove ECP256Certificate::authorityKeyId function
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jan 17, 2025
1 parent 69dc7d8 commit bc42028
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions src/ECP256Certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,17 +397,6 @@ int ECP256Certificate::setSignature(const byte* signature, int signatureLen) {
return 0;
}

const byte * ECP256Certificate::authorityKeyId() const {
static const byte objectId[] = {0x06, 0x03, 0x55, 0x1D, 0x23};
byte * result = nullptr;
void * ptr = memmem(_certBuffer, _certBufferLen, objectId, sizeof(objectId));
if (ptr != nullptr) {
result = (byte*)ptr;
result += 11;
}
return result;
}

/******************************************************************************
* PRIVATE MEMBER FUNCTIONS
******************************************************************************/
Expand Down
3 changes: 0 additions & 3 deletions src/ECP256Certificate.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class ECP256Certificate {
inline byte* bytes() { return _certBuffer; }
inline int length() { return _certBufferLen; }

/* Parsing Helpers */
const byte * authorityKeyId() const;

#if defined(SECURE_ELEMENT_IS_ECCX08)
/* Get Data to create ECCX08 compressed cert */
inline byte* compressedCertBytes() { return _compressedCert.data; }
Expand Down

0 comments on commit bc42028

Please sign in to comment.