Skip to content

Commit bc42028

Browse files
committed
Remove ECP256Certificate::authorityKeyId function
1 parent 69dc7d8 commit bc42028

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/ECP256Certificate.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -397,17 +397,6 @@ int ECP256Certificate::setSignature(const byte* signature, int signatureLen) {
397397
return 0;
398398
}
399399

400-
const byte * ECP256Certificate::authorityKeyId() const {
401-
static const byte objectId[] = {0x06, 0x03, 0x55, 0x1D, 0x23};
402-
byte * result = nullptr;
403-
void * ptr = memmem(_certBuffer, _certBufferLen, objectId, sizeof(objectId));
404-
if (ptr != nullptr) {
405-
result = (byte*)ptr;
406-
result += 11;
407-
}
408-
return result;
409-
}
410-
411400
/******************************************************************************
412401
* PRIVATE MEMBER FUNCTIONS
413402
******************************************************************************/

src/ECP256Certificate.h

-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ class ECP256Certificate {
6868
inline byte* bytes() { return _certBuffer; }
6969
inline int length() { return _certBufferLen; }
7070

71-
/* Parsing Helpers */
72-
const byte * authorityKeyId() const;
73-
7471
#if defined(SECURE_ELEMENT_IS_ECCX08)
7572
/* Get Data to create ECCX08 compressed cert */
7673
inline byte* compressedCertBytes() { return _compressedCert.data; }

0 commit comments

Comments
 (0)