def _fix_ctx(m2_ctx, issuer=None):
 ctx = _Ctx.from_address(int(m2_ctx))
 ctx.flags = 0
 ctx.subject_cert = None
 ctx.subject_req = None
 ctx.crl = None
 if (issuer is None):
  ctx.issuer_cert = None
 else:
  ctx.issuer_cert = int(issuer.x509)

def _fix_ctx ( m2_ctx , issuer = None ) : ctx = _Ctx . from_address ( int ( m2_ctx ) ) ctx . flags = 0 ctx . subject_cert = None ctx . subject_req = None ctx . crl = None if ( issuer is None ) : ctx . issuer_cert = None else : ctx . issuer_cert = int ( issuer . x509 )
this is part of an ugly hack to fix an ancient bug in m2crypto URL#c13 .