error: `LHASH' was not declared in this scope,
<p>While upgrading OpenSSL from .97e to 1.0.2d I'm facing these errors, </p>

<blockquote>
  <p>BasicAuthCertificateLoader.cpp: At global scope:
  BasicAuthCertificateLoader.cpp:493: error:
  <code>X509*CBasicAuthCertificateLoader::GetCert' is not a static member of
  </code>class CBasicAuthCertificateLoader'
  BasicAuthCertificateLoader.cpp:493: error: <code>LHASH' was not declared in
  this scope BasicAuthCertificateLoader.cpp:493: error:</code>conf' was not
  declared in this scope BasicAuthCertificateLoader.cpp:493: error:
  expected primary-expression before '<em>' token
  BasicAuthCertificateLoader.cpp:493: error: <code>req' was not declared in
  this scope BasicAuthCertificateLoader.cpp:493: error: expected
  primary-expression before '*' token
  BasicAuthCertificateLoader.cpp:493: error:</code>issuer' was not declared
  in this scope BasicAuthCertificateLoader.cpp:493: error: expected
  primary-expression before '</em>' token
  BasicAuthCertificateLoader.cpp:493: error: <code>priv_key' was not declared
  in this scope BasicAuthCertificateLoader.cpp:493: error: expected
  primary-expression before "days" BasicAuthCertificateLoader.cpp:494:
  error: initializer expression list treated as compound expression
  BasicAuthCertificateLoader.cpp:494: error: expected</code>,' or <code>;' before
  '{' token BasicAuthCertificateLoader.cpp: In member function</code>HRESULT
  CBasicAuthCertificateLoader::GenerateCertificateData(char*, X509**,
  EVP_PKEY**, PKCS12**)': BasicAuthCertificateLoader.cpp:651: error:
  <code>LHASH' was not declared in this scope
  BasicAuthCertificateLoader.cpp:651: error:</code>conf' was not declared in
  this scope BasicAuthCertificateLoader.cpp:674: warning: cast from
  <code>const char*' to</code>void*' discards qualifiers from pointer target type
  BasicAuthCertificateLoader.cpp:691: error: <code>GetCert' was not declared
  in this scope BasicAuthCertificateLoader.cpp:705: error:</code>GetCert' was
  not declared in this scope</p>
</blockquote>

<p>Has any one faced similar errors?</p>