Source Code/My Patch

[OpenSSL] OSSL_CMP_CERTSTATUS ์ •๋ณด ์–ป๊ธฐ ํ•จ์ˆ˜

JayKim๐Ÿ™‚ 2019. 12. 17. 10:57

cmp.h.in ์— ์•„๋ž˜ ํ—ค๋” ์ถ”๊ฐ€

ASN1_OCTET_STRING *OSSL_CMP_CERTSTATUS_get0_certHash( OSSL_CMP_CERTSTATUS *certStatus );

ASN1_INTEGER *OSSL_CMP_CERTSTATUS_get0_certReqId( OSSL_CMP_CERTSTATUS *certStatus );

OSSL_CMP_PKISI *OSSL_CMP_CERTSTATUS_get0_statusInfo( OSSL_CMP_CERTSTATUS *certStatus );

 

cmp_msg.c ์— ์•„๋ž˜ ์†Œ์Šค ์ถ”๊ฐ€

ASN1_OCTET_STRING *OSSL_CMP_CERTSTATUS_get0_certHash( OSSL_CMP_CERTSTATUS *certStatus )
{
	if( certStatus == NULL ) return NULL;
    
	return certStatus->certHash;
}

ASN1_INTEGER *OSSL_CMP_CERTSTATUS_get0_certReqId( OSSL_CMP_CERTSTATUS *certStatus )
{
	if( certStatus == NULL ) return NULL;
    
	return certStatus->certReqId;
}

OSSL_CMP_PKISI *OSSL_CMP_CERTSTATUS_get0_statusInfo( OSSL_CMP_CERTSTATUS *certStatus )
{
	if( certStatus == NULL ) return NULL;
    
	return certStatus->statusInfo;
}