EXIT() may mean return(). That's confusing, so let's have it really mean
[openssl.git] / apps / verify.c
index 215ef84fc75f5347e3ee530328f3fc9fedec8bf8..9a18213ece454c45b93f03ee649424d4342eb63e 100644 (file)
@@ -232,7 +232,7 @@ end:
        sk_X509_pop_free(untrusted, X509_free);
        sk_X509_pop_free(trusted, X509_free);
        apps_shutdown();
-       EXIT(ret);
+       OPENSSL_EXIT(ret);
        }
 
 static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose, ENGINE *e)
@@ -330,7 +330,8 @@ static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx)
        if (!ok)
                {
                X509_NAME_oneline(
-                               X509_get_subject_name(ctx->current_cert),buf,256);
+                               X509_get_subject_name(ctx->current_cert),buf,
+                               sizeof buf);
                printf("%s\n",buf);
                printf("error %d at %d depth lookup:%s\n",ctx->error,
                        ctx->error_depth,