Skip to content

Commit 1e3a4fd

Browse files
committed
ECP256Certificate: add functions to get subject common name info
1 parent 1569718 commit 1e3a4fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ECP256Certificate.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ class ECP256Certificate {
8787
inline int compressedCertSerialAndAuthorityKeyIdLenght() {return ECP256_CERT_SERIAL_NUMBER_LENGTH + ECP256_CERT_AUTHORITY_KEY_ID_LENGTH; }
8888
#endif
8989

90+
inline byte* subjectCommonNameBytes() { return (byte*)_subjectData.commonName.begin(); }
91+
inline int subjectCommonNameLenght() {return _subjectData.commonName.length(); }
92+
9093
/* Build CSR */
9194
int buildCSR();
9295
int signCSR(byte signature[]);

0 commit comments

Comments
 (0)