getting the bottommost one. I hope I understood correctly how this
should be done. It seems to work when running evp_test in an
environment where it can't find openssl.cnf.
if (es->bottom == es->top) return 0;
if (top)
if (es->bottom == es->top) return 0;
if (top)
- i=(es->bottom+1)%ERR_NUM_ERRORS; /* last error */
+ i=es->top; /* last error */
else
i=(es->bottom+1)%ERR_NUM_ERRORS; /* first error */
else
i=(es->bottom+1)%ERR_NUM_ERRORS; /* first error */