Lines Matching refs:error
87 * Return 1 if given cert is considered self-signed, 0 if not, or -1 on error.
112 * Returns 1 on success, 0 on not found, -1 on internal error.
146 * Inform the verify callback of an error.
147 * The error code is set to |err| if |err| is not X509_V_OK, else
148 * |ctx->error| is left unchanged (under the assumption it is set elsewhere).
149 * The error depth is |depth| if >= 0, else it defaults to |ctx->error_depth|.
150 * The error cert is |x| if not NULL, else defaults to the chain cert at depth.
152 * Returns 0 to abort verification with an error, non-zero to continue.
162 ctx->error = err;
171 * Inform the verify callback of an error, CRL-specific variant. Here, the
172 * error depth and certificate are already set, we just specify the error
175 * Returns 0 to abort verification with an error, non-zero to continue.
179 ctx->error = err;
210 /* Returns -1 on internal error */
271 ctx->error = X509_V_ERR_INVALID_CALL;
281 ctx->error = X509_V_ERR_INVALID_CALL;
286 ctx->error = X509_V_ERR_OUT_OF_MEM;
298 * Safety-net. If we are returning an error, we must also set ctx->error,
299 * so that the chain is not considered verified should the error be ignored
302 if (ret <= 0 && ctx->error == X509_V_OK)
303 ctx->error = X509_V_ERR_UNSPECIFIED;
352 * Every other error code likely indicates a real error.
359 * Returns -1 on internal error.
371 * Returns NULL on internal error (such as out of memory).
387 ctx->error = X509_V_ERR_OUT_OF_MEM;
398 * Sadly, returns 0 also on internal error.
449 * Sadly, returns 0 also on internal error.
645 /* Returns -1 on internal error */
707 ctx->error = X509_V_ERR_OUT_OF_MEM;
809 /* Returns -1 on internal error */
907 /* Sadly, returns 0 also on internal error. */
931 /* Sadly, returns 0 also on internal error. */
955 /* If error looking up CRL, nothing we can do except notify callback */
1675 /* The callback ignored the error so we return success */
1680 ctx->error = X509_V_ERR_NO_EXPLICIT_POLICY;
1692 * an SSL handshake to continue despite an error, and we must then
1693 * remain in an error state. Therefore, we MUST NOT clear earlier
1694 * verification errors by setting the error to X509_V_OK.
1704 ctx->error = X509_V_ERR_OUT_OF_MEM;
1710 * If depth >= 0, invoke verification callbacks on error, otherwise just return
1743 * Sadly, returns 0 also on internal error.
1777 * Do not clear error (by ctx->error = X509_V_OK), it must be "sticky",
1836 * Signal success at this depth. However, the previous error (if any)
2020 * Sadly, returns NULL also on internal error.
2139 return ctx->error;
2144 ctx->error = err;
2340 ctx->error = X509_V_OK;
2450 * On error clean up allocated storage, if the store context was not
2686 /* Returns -1 on internal error */
2829 /* Returns -1 on internal error */
2910 /* Returns -1 on internal error */
2927 * + matched < 0, internal error.
2955 ctx->error = X509_V_ERR_OUT_OF_MEM;
2975 * Returns -1 on internal error.
2989 /* Returns -1 on internal error */
3058 * with an X509_V_ERR_CERT_CHAIN_TOO_LONG error code.
3073 * The error reported to the application verify callback is at the
3108 ctx->error = X509_V_ERR_STORE_LOOKUP;
3266 if (trust < 0) /* internal error */
3289 switch(ctx->error) {
3295 default: /* A preliminary error has become final */
3296 return verify_cb_cert(ctx, NULL, num - 1, ctx->error);
3318 ctx->error = X509_V_ERR_UNSPECIFIED;
3324 ctx->error = X509_V_ERR_OUT_OF_MEM;
3350 ctx->error = X509_V_ERR_OUT_OF_MEM;