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