/* decode a bitstring into a buffer of the expected length. enclen = bit string length explen = expected length (define in rfc)  */
int decode_asn1_bitstring(struct xdr_netobj *out, char *in, int enclen, int explen)
/* decode a bitstring into a buffer of the expected length. enclen = bit string length explen = expected length (define in rfc)  */
int decode_asn1_bitstring(struct xdr_netobj *out, char *in, int enclen, int explen)
{
	if (!(out->data = kzalloc(explen,GFP_NOFS)))
		return 0;
	out->len = explen;
	memcpy(out->data, in, enclen);
	return 1;
}