cmp_int.h ์์
DEFINE_STACK_OF(OSSL_CMP_REVDETAILS) <-- ์ด ๋ถ๋ถ ์ฃผ์ ์ฒ๋ฆฌ
cmp.h ์ ์๋ ๋ ์ค ์ถ๊ฐ ํ๊ธฐ
typedef struct OSSL_cmp_revdetails_st OSSL_CMP_REVDETAILS;
DEFINE_STACK_OF(OSSL_CMP_REVDETAILS)
cmp.h ๋ ํจ์ ์ถ๊ฐ
OSSL_CRMF_CERTTEMPLATE* OSSL_CMP_REVDETAILS_get0_certDetails( const OSSL_CMP_REVDETAILS *details );
X509_EXTENSIONS* OSSL_CMP_REVDETAILS_get0_crlEntryDetails( const OSSL_CMP_REVDETAILS *details );
cmp_lib.c ์ ํจ์ ์์ค ์ถ๊ฐ
OSSL_CRMF_CERTTEMPLATE* OSSL_CMP_REVDETAILS_get0_certDetails( const OSSL_CMP_REVDETAILS *details )
{
if( details == NULL ) return NULL;
return details->certDetails;
}
X509_EXTENSIONS* OSSL_CMP_REVDETAILS_get0_crlEntryDetails( const OSSL_CMP_REVDETAILS *details )
{
if( details == NULL ) return NULL;
return details->crlEntryDetails;
}
์ฐธ๊ณ ) Openssl3 ์์๋ ์ ์ฉ์ ์ด๋ ค์ ์์( ์๋ ์ฒ๋ฆฌ ํจ )
cmp.h ์
X509_EXTENSIONS* OSSL_CMP_get0_crlEntryDetails( void *pRR_Body, int index );
cmp_ctx.c ์
X509_EXTENSIONS* OSSL_CMP_get0_crlEntryDetails( void *pRR_Body, int index )
{
OSSL_CMP_REVDETAILS *pDetails = NULL;
if( pRR_Body == NULL ) return NULL;
STACK_OF(OSSL_CMP_REVDETAILS) *pRevDetails = pRR_Body;
pDetails = sk_OSSL_CMP_REVDETAILS_value( pRevDetails, index );
if( pDetails == NULL ) return NULL;
return pDetails->crlEntryDetails;
}
์๋์ฐ ์ง์์ ์ํด์๋
utils/libcrypto.num ์ ๋ค์ ๊ฐ์ ์ฃผ์ด์ผ ํ๋ค.
OSSL_CMP_get0_crlEntryDetails 5573 3_0_0 EXIST::FUNCTION:CMP
์์ค ์ถ๊ฐ ํจ.
์ค์ ํ๋์ ํจ์ ๋ง ์ฌ์ฉํจ OSSL_CMP_REVDETAILS_get0_certDetails ๋ ํ์ ์์
index ๊ฐ์ 0 ๋ฒ์งธ๋ก ์ฌ์ฉ
(Test ๋ถ๋ถ์ ์๋ฌ๊ฐ ๋์ Makefile ์์ test_cmp_ctx ๊ด๋ จ ์ ๊ฑฐ ํจ)
๋ฐ์ํ
'Source Code > My Patch' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[OpenSSL] OSSL_CMP_CERTSTATUS ์ ๋ณด ์ป๊ธฐ ํจ์ (0) | 2019.12.17 |
---|---|
[CMPOSSL] CMP CTX ์์ serverName, serverPath, serverPort ์ ๋ณด ์ป๊ธฐ ํจ์ (0) | 2019.12.13 |
[CMPOSSL] CRMF_CERTTEMPLATE ๋ฉ์ธ์ง์์ ๊ณต๊ฐํค ๊ฐ ์ป๊ธฐ (0) | 2019.12.09 |
[CMPOSSL] CMP ์์ SenderKID ๊ฐ ์ป๊ธฐ ํจ์ (0) | 2019.12.09 |
[OpenSSL3 ] CMP_MSG body ๊ฐ ๊ฐ์ ธ์ค๊ธฐ (0) | 2019.12.06 |