summaryrefslogtreecommitdiff
path: root/usr/src/common/net/wanboot/auxutil.h
blob: c0b30540d55ed12059e5e6f3c814d9fa7d8e4361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright 2002, 2003 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef	_AUXUTIL_H
#define	_AUXUTIL_H

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#ifdef	__cplusplus
extern "C" {
#endif

#undef	NULL
#define	NULL ((void *) 0)

ASN1_BMPSTRING *asc2bmpstring(const char *, int);

uchar_t *utf82ascstr(ASN1_UTF8STRING *);

int set_results(STACK_OF(EVP_PKEY) **, STACK_OF(EVP_PKEY) **, STACK_OF(X509) **,
    STACK_OF(X509) **, STACK_OF(X509) **, STACK_OF(X509) **,
    STACK_OF(EVP_PKEY) **, STACK_OF(EVP_PKEY) **);

int find_attr(int, ASN1_STRING *, STACK_OF(EVP_PKEY) *, EVP_PKEY **,
    STACK_OF(X509) *, X509 **);

int find_attr_by_nid(STACK_OF(X509_ATTRIBUTE) *, int);

int get_key_cert(int, STACK_OF(EVP_PKEY) *, EVP_PKEY **, STACK_OF(X509) *,
    X509 **);

X509_ATTRIBUTE *type2attrib(ASN1_TYPE *, int);

ASN1_TYPE *attrib2type(X509_ATTRIBUTE *);

int move_certs(STACK_OF(X509) *, STACK_OF(X509) *);

int print_time(FILE *, ASN1_TIME *);


#ifdef	__cplusplus
}
#endif

#endif	/* _AUXUTIL_H */