/*
Unix SMB/CIFS implementation.
- simple SPNEGO routines
+ simple ASN1 routines
Copyright (C) Andrew Tridgell 2001
This program is free software; you can redistribute it and/or modify
return !data->has_error;
}
-/* read an interger without tag*/
+/* read an integer without tag*/
bool asn1_read_implicit_Integer(struct asn1_data *data, int *i)
{
uint8_t b;
}
-/* read an interger */
+/* read an integer */
bool asn1_read_Integer(struct asn1_data *data, int *i)
{
*i = 0;
return asn1_end_tag(data);
}
-/* read an interger */
+/* read an integer */
bool asn1_read_enumerated(struct asn1_data *data, int *v)
{
*v = 0;
return asn1_end_tag(data);
}
-/* check a enumarted value is correct */
+/* check a enumerated value is correct */
bool asn1_check_enumerated(struct asn1_data *data, int v)
{
uint8_t b;
return !data->has_error;
}
-/* write an enumarted value to the stream */
+/* write an enumerated value to the stream */
bool asn1_write_enumerated(struct asn1_data *data, uint8_t v)
{
if (!asn1_push_tag(data, ASN1_ENUMERATED)) return false;