| * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the OpenSSL license (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| #include <openssl/x509.h> |
| #include <openssl/x509v3.h> |
| int main(int ac, char **av) |
| fprintf(stderr, "Usage error\n"); |
| b = BIO_new_file(av[1], "r"); |
| x = PEM_read_bio_X509(b, NULL, NULL, NULL); |
| pathlen = X509_get_pathlen(x); |
| ERR_print_errors_fp(stderr); |