CMP ๋ฉ์ธ์ง์ Body๊ฐ์ ๊ฐ์ ธ์ค๋ ํจ์์ด๋ค.
cmp.h.in ํ์ผ์ ์๋ ํค๋๋ฅผ ์ถ๊ฐ ํ๋ฉด cmp.h ํค๋์ ์๋ ์ ์ฉ์ด ๋๋ค.
void* OSSL_CMP_MSG_get0_body( const OSSL_CMP_MSG *msg );
์ถ๊ฐ
cmp_msg.c ํ์ผ์ ์๋ ํจ์ ์ถ๊ฐ
void* OSSL_CMP_MSG_get0_body( const OSSL_CMP_MSG *msg )
{
if( msg == NULL || msg->body == NULL ) return NULL;
switch ( msg->body->type ) {
case OSSL_CMP_PKIBODY_IR:
case OSSL_CMP_PKIBODY_CR:
case OSSL_CMP_PKIBODY_KUR:
return msg->body->value.ir;
case OSSL_CMP_PKIBODY_P10CR:
return msg->body->value.p10cr;
case OSSL_CMP_PKIBODY_IP:
case OSSL_CMP_PKIBODY_CP:
case OSSL_CMP_PKIBODY_KUP:
return msg->body->value.ip;
case OSSL_CMP_PKIBODY_RR:
return msg->body->value.rr;
case OSSL_CMP_PKIBODY_RP:
return msg->body->value.rp;
case OSSL_CMP_PKIBODY_CERTCONF:
return msg->body->value.certConf;
case OSSL_CMP_PKIBODY_PKICONF:
return msg->body->value.pkiconf;
case OSSL_CMP_PKIBODY_POLLREQ:
return msg->body->value.pollReq;
case OSSL_CMP_PKIBODY_POLLREP:
return msg->body->value.pollRep;
case OSSL_CMP_PKIBODY_GENM:
case OSSL_CMP_PKIBODY_GENP:
return msg->body->value.genm;
case OSSL_CMP_PKIBODY_ERROR:
return msg->body->value.error;
}
return NULL;
}
์๋์ฐ ์ง์์ ์ํด์๋
utils/libcrypto.num ์ ๋ค์ ๊ฐ์ ์ฃผ์ด์ผ ํ๋ค.
OSSL_CMP_MSG_get0_body 5573 3_0_0 EXIST::FUNCTION:CMP
'Source Code > My Patch' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[CMPOSSL] CMP CTX ์์ serverName, serverPath, serverPort ์ ๋ณด ์ป๊ธฐ ํจ์ (0) | 2019.12.13 |
---|---|
[CMPOSSL] OSSL_CMP_REVDETAILS ์ฌ์ฉ ์ง์ ํ๊ธฐ (0) | 2019.12.10 |
[CMPOSSL] CRMF_CERTTEMPLATE ๋ฉ์ธ์ง์์ ๊ณต๊ฐํค ๊ฐ ์ป๊ธฐ (0) | 2019.12.09 |
[CMPOSSL] CMP ์์ SenderKID ๊ฐ ์ป๊ธฐ ํจ์ (0) | 2019.12.09 |
[OpenSSL3] OCSP ์์ฒญ ์๋ช ์ ์ด๋ฆ ์ ๋ณด ๊ฐ์ ธ ์ค๊ธฐ ํจ์ ์ถ๊ฐ (0) | 2019.12.06 |