title: c2i_ASN1_INTEGER function in Openssl 1.1.0
body: <p>I recently updated openssl from 1.0.2n to 1.1.0g in linux system.</p>
  
  <p>Earlier I was using</p>
  
  <p><code>ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, long len)</code>  function. As this function is removed in openssl 1.1.0, now i replaced this with</p>
  
  <p><code>ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp, long length)</code> . </p>
  
  <p>Now when i run my application then i get warning as</p>
  
  <p><code>Warning:0:-- SSL Error queue report --
  Warning:0: - asn1 encoding routines|d2i_ASN1_UINTEGER|expecting an integer:218718323</code> </p>
  
  <p>What is the solution for this problem?</p>