=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/x509.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/openssl/x509.c 2021/04/07 10:44:03 1.23 --- src/usr.bin/openssl/x509.c 2021/08/29 19:56:40 1.24 *************** *** 1,4 **** ! /* $OpenBSD: x509.c,v 1.23 2021/04/07 10:44:03 inoguchi Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: x509.c,v 1.24 2021/08/29 19:56:40 schwarze Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * *************** *** 1016,1025 **** sk_OPENSSL_STRING_value(emlst, j)); X509_email_free(emlst); } else if (x509_config.aliasout == i) { ! unsigned char *alstr; ! alstr = X509_alias_get0(x, NULL); ! if (alstr != NULL) ! BIO_printf(STDout, "%s\n", alstr); else BIO_puts(STDout, "\n"); } else if (x509_config.subject_hash == i) { --- 1016,1027 ---- sk_OPENSSL_STRING_value(emlst, j)); X509_email_free(emlst); } else if (x509_config.aliasout == i) { ! unsigned char *albuf; ! int buflen; ! albuf = X509_alias_get0(x, &buflen); ! if (albuf != NULL) ! BIO_printf(STDout, "%.*s\n", ! buflen, albuf); else BIO_puts(STDout, "\n"); } else if (x509_config.subject_hash == i) {