Artifact 40a1fc466e7cd4aeef46005b033e20c0288b4499:
- File
asn1-x509.h
— part of check-in
[a2ac84031e]
at
2010-05-17 19:37:43
on branch trunk
— Updated to support determining key size from X.509 object (untested)
Updated to set HW TOKEN flag
Updated to pad sign/decrypt message to key size (untested) (user: rkeene, size: 652) [annotate] [blame] [check-ins using]
#ifndef USACEIT_ASN1_X509_H #define USACEIT_ASN1_X509_H 1 #ifdef HAVE_CONFIG_H # include "config.h" # ifdef HAVE_UNISTD_H # include <unistd.h> # endif #else # include <unistd.h> #endif ssize_t x509_to_subject(void *x509_der_buf, size_t x509_der_buf_len, void **outbuf); ssize_t x509_to_issuer(void *x509_der_buf, size_t x509_der_buf_len, void **outbuf); ssize_t x509_to_serial(void *x509_der_buf, size_t x509_der_buf_len, void **outbuf); ssize_t x509_to_keysize(void *x509_der_buf, size_t x509_der_buf_len); ssize_t x509_dn_to_string(void *asn1_der_buf, size_t asn1_der_buf_len, char *outbuf, size_t outbuf_len, char *matchlabel); #endif