<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Matt,<br>
Seen this comment in GitHub<br>
<br>
<span style="color: rgb(220, 190, 34); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; background-color: rgb(255, 255, 255); display: inline !important;">OpenSSL
 1.1.0 made many structures opaque. You cannot directly access the fields inside the X509 structure any more. Instead you must use accessor functions. In this case, as</span><span style="color:rgb(36, 41, 47);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:14px;background-color:rgb(255, 255, 255);display:inline !important"><span style="color: rgb(220, 190, 34);"> </span></span><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/slontis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/slontis" style="box-sizing:border-box;background-color:rgb(255, 255, 255);color:var(--color-fg-default);font-weight:600;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:14px"><span style="color: rgb(220, 190, 34);">@slontis</span></a><span style="color:rgb(36, 41, 47);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:14px;background-color:rgb(255, 255, 255);display:inline !important"><span style="color: rgb(220, 190, 34);"> </span></span><span style="color: rgb(220, 190, 34); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; background-color: rgb(255, 255, 255); display: inline !important;">says,
 you must use the function</span><span style="color:rgb(36, 41, 47);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:14px;background-color:rgb(255, 255, 255);display:inline !important"><span style="color: rgb(220, 190, 34);"> </span></span><code style="box-sizing:border-box;font-family:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;font-size:11.9px;padding:0.2em 0.4em;margin:0px;background-color:var(--color-neutral-muted);border-radius:6px;color:rgb(36, 41, 47)"><span style="color: rgb(220, 190, 34);">X509_get0_signature()</span></code><br>
<a href="https://github.com/openssl/openssl/issues/12447#issuecomment-660958868" id="LPlnk238592">https://github.com/openssl/openssl/issues/12447#issuecomment-660958868</a><br>
<br>
:error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}<br>
     if (x->ocsp && x->ocsp->ocsp_url)<br>
<br>
:error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}<br>
         if(cert->sig_alg)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
:types.h:157:16: note: forward declaration of 'X509' {aka 'struct x509_st'}<br>
 typedef struct x509_st X509;<br>
<br>
error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}<br>
             sigAlg = OBJ_obj2nid((cert)->sig_alg->algorithm);<br>
<br>
 error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     x = ctx->cert;</div>
            ^~<br>
types.h:165:16: note: forward declaration of 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div> typedef struct x509_store_ctx_st X509_STORE_CTX;</div>
                ^~~~~~~~~~~~~~~~~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     ctx->current_cert = x;</div>
        ^~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     ctx->current_issuer = NULL;</div>
        ^~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     ctx->current_crl_score = 0;</div>
        ^~<br>
<br>
types.h:165:16: note: forward declaration of 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div> typedef struct x509_store_ctx_st X509_STORE_CTX;</div>
                ^~~~~~~~~~~~~~~~~<br>
<br>
types.h:165:16: note: forward declaration of 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div> typedef struct x509_store_ctx_st X509_STORE_CTX;</div>
<div>                ^~~~~~~~~~~~~~~~~</div>
<div>/sonus/p4/ws/spoojari/openssl3/marlin/SIPCM/sipCmOpenSSL.c:3268:8: error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}</div>
<div>     ctx->current_reasons = 0;</div>
        ^~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     ctx->error = 0;</div>
        ^~<br>
error: invalid use of incomplete type 'X509' {aka 'struct x509_st'}
<div>             if (px->ocsp && (px->ocsp->ocsp_validate == X509_OCSP_VALIDATE_DISABLED))</div>
                   ^~</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>         if (!ctx->ctx->ocsp_process_responder)</div>
                 ^~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>     store = ctx->ctx;</div>
                ^~<br>
<br>
error: invalid use of incomplete type 'X509_STORE_CTX' {aka 'struct x509_store_ctx_st'}
<div>         ok = ctx->verify_cb(0, ctx);</div>
                 ^~<br>
Getting above error in the code, Please provide the document that which function i can use to resolve this errors.<br>
<br>
Thanks,<br>
Shiva kumar</div>
<br clear="both">
Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.<BR>
</body>
</html>