Skip to content

Commit 93cc04e

Browse files
committed
Updated agent to accept ECDSA as well as ECC for eliptic curve keys
1 parent 893d6bb commit 93cc04e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

agent.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ extern struct ScheduledJob* currentJob; /* Defined in schedule.c */
100100
/* 2.16.0.0 = Updated TPM for default passkey */
101101
/* 2.16.0.1 = Updated Makefile for OpenSSL v3.x */
102102
/* 2.16.1.0 = Modified agent to not send GUID capabilities. Compile bug fix */
103-
#define AGENT_VERSION 0x0002001000010000
103+
/* 2.17.0.0 = Modified agent to accept ECDSA as well as ECC for a keytype */
104+
#define AGENT_VERSION 0x0002001001000000
104105

105106
#endif /* AGENT_H_ */

csr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ bool generate_keypair(const char* keyType, int keySize)
8080
bResult = ssl_generate_rsa_keypair(keySize);
8181
#endif
8282
}
83-
else if(strcasecmp(keyType, "ECC") == 0)
83+
else if(( strcasecmp(keyType, "ECC") == 0) ||
84+
( strcasecmp(keyType, "ECDSA") == 0))
8485
{
8586
#if defined(__TPM__)
8687
log_error("%s::%s(%d) : Error, SLB9670 with tpm2tss engine does "

0 commit comments

Comments
 (0)