1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright 2002, 2003 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate #ifndef _AUXUTIL_H 7*7c478bd9Sstevel@tonic-gate #define _AUXUTIL_H 8*7c478bd9Sstevel@tonic-gate 9*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 10*7c478bd9Sstevel@tonic-gate 11*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 12*7c478bd9Sstevel@tonic-gate extern "C" { 13*7c478bd9Sstevel@tonic-gate #endif 14*7c478bd9Sstevel@tonic-gate 15*7c478bd9Sstevel@tonic-gate #undef NULL 16*7c478bd9Sstevel@tonic-gate #define NULL ((void *) 0) 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gate ASN1_BMPSTRING *asc2bmpstring(const char *, int); 19*7c478bd9Sstevel@tonic-gate 20*7c478bd9Sstevel@tonic-gate uchar_t *utf82ascstr(ASN1_UTF8STRING *); 21*7c478bd9Sstevel@tonic-gate 22*7c478bd9Sstevel@tonic-gate int set_results(STACK_OF(EVP_PKEY) **, STACK_OF(EVP_PKEY) **, STACK_OF(X509) **, 23*7c478bd9Sstevel@tonic-gate STACK_OF(X509) **, STACK_OF(X509) **, STACK_OF(X509) **, 24*7c478bd9Sstevel@tonic-gate STACK_OF(EVP_PKEY) **, STACK_OF(EVP_PKEY) **); 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gate int find_attr(int, ASN1_STRING *, STACK_OF(EVP_PKEY) *, EVP_PKEY **, 27*7c478bd9Sstevel@tonic-gate STACK_OF(X509) *, X509 **); 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gate int find_attr_by_nid(STACK_OF(X509_ATTRIBUTE) *, int); 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate int get_key_cert(int, STACK_OF(EVP_PKEY) *, EVP_PKEY **, STACK_OF(X509) *, 32*7c478bd9Sstevel@tonic-gate X509 **); 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate X509_ATTRIBUTE *type2attrib(ASN1_TYPE *, int); 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate ASN1_TYPE *attrib2type(X509_ATTRIBUTE *); 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate int move_certs(STACK_OF(X509) *, STACK_OF(X509) *); 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate int print_time(FILE *, ASN1_TIME *); 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 44*7c478bd9Sstevel@tonic-gate } 45*7c478bd9Sstevel@tonic-gate #endif 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gate #endif /* _AUXUTIL_H */ 48