๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ 188

[CMPOSSL] CMP ์—์„œ SenderKID ๊ฐ’ ์–ป๊ธฐ ํ•จ์ˆ˜

cmp.h.in ํ—ค๋”์— ์•„๋ž˜ ํ•จ์ˆ˜ ์ •์˜ ์ถ”๊ฐ€ ASN1_OCTET_STRING* OSSL_CMP_HDR_get0_senderKID( const OSSL_CMP_PKIHEADER *hdr ); cmp_lib.c ์— ์•„๋ž˜ ์†Œ์Šค ์ถ”๊ฐ€ ASN1_OCTET_STRING* OSSL_CMP_HDR_get0_senderKID( const OSSL_CMP_PKIHEADER *hdr ) { if( hdr == NULL ) return NULL; return hdr->senderKID; } ์œˆ๋„์šฐ ์ง€์›์„ ์œ„ํ•ด์„œ๋Š” utils/libcrypto.num ์— ๋‹ค์Œ ๊ฐ’์„ ์ฃผ์–ด์•ผ ํ•œ๋‹ค. OSSL_CMP_HDR_get0_senderKID 5573 3_0_0 EXIST::FUNCTION:CMP

[OpenSSL3 ] CMP_MSG body ๊ฐ’ ๊ฐ€์ ธ์˜ค๊ธฐ

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..

[OpenSSL3] OCSP ์š”์ฒญ ์„œ๋ช…์ž ์ด๋ฆ„ ์ •๋ณด ๊ฐ€์ ธ ์˜ค๊ธฐ ํ•จ์ˆ˜ ์ถ”๊ฐ€

์ด ํ•จ์ˆ˜๋Š” OCSP ์š”์ฒญ์ž์˜ ์ด๋ฆ„์„ ์–ป๊ธฐ ์œ„ํ•œ ํ•จ์ˆ˜์ด๋‹ค. ocsp.h.in ํ—ค๋ฐ์–ด ์•„๋ž˜ ๋ผ์ธ์„ ์ถ”๊ฐ€ ํ•ด ์ฃผ๋ฉด ocsp.h ํ—ค๋”์— ์ ์šฉ ๋œ๋‹ค. X509_NAME* OCSP_request_get0_name(OCSP_REQUEST *req); ocsp_cl.c ์— ์•„๋ž˜ ์†Œ์Šค ์ถ”๊ฐ€ X509_NAME* OCSP_request_get0_name(OCSP_REQUEST *req) { if( req == NULL ) return NULL; if( req->tbsRequest.requestorName == NULL ) return NULL; return req->tbsRequest.requestorName->d.directoryName; } ์œˆ๋„์šฐ์šฉ ๋นŒ๋“œ ์‹œ OpenSSL ํ”„๋กœ์ ํŠธ ๋‚ด์— ์žˆ๋Š” utils/libcrypto..

QT ๋ฐ ๊ฐœ๋ฐœ ๊ด€๋ จ ๋งํฌ

GIT ์‚ฌ์šฉ๋ฒ• https://backlog.com/git-tutorial/kr/intro/intro1_1.html ์•”ํ˜ธ ๊ด€๋ จ ์ •๋ณด https://cryptobook.nakov.com/ Qt example code site http://www.codeprogress.com/cpp/libraries/qt/index.php http://www.bogotobogo.com/index.php Qt forum http://www.qtcentre.org/forum.php How to compile OpenSSL with MinGW https://wiki.qt.io/Compiling_OpenSSL_with_MinGW This site is that you can get various application made by ..

Development 2017.01.26