Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
ASN1_BIT_STRING_set, ASN1_BIT_STRING_set_bit, ASN1_BIT_STRING_get_bit, ASN1_BIT_STRING_check — ASN.1 BIT STRING accessorsSYNOPSIS
#include <openssl/asn1.h>ASN1_BIT_STRING_set(ASN1_BIT_STRING *bitstr, unsigned char *data, int len);
ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *bitstr, int bitnumber, int set);
ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *bitstr, int bitnumber);
ASN1_BIT_STRING_check(ASN1_BIT_STRING *bitstr, const unsigned char *goodbits, int goodbits_len);
DESCRIPTION
ASN1_BIT_STRING_set() sets the length attribute of bitstr to len and copies that number of bytes from data into bitstr, overwriting any previous data, by merely calling ASN1_STRING_set(3). This function does no validation whatsoever. In particular, it neither checks that bitstr is actually of the type V_ASN1_BIT_STRING nor, even if it is, that the data and len arguments make sense for this particular bit string.(bitstr&
~goodbits) == 0