• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/asn1/

Lines Matching defs:str

76 int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
83 p = str;
166 * This takes a character 'value' and writes the UTF8 encoded value in 'str'
167 * where 'str' is a buffer containing 'len' characters. Returns the number of
168 * characters written or -1 if 'len' is too small. 'str' can be set to NULL
173 int UTF8_putc(unsigned char *str, int len, unsigned long value)
175 if (!str)
180 if (str)
181 *str = (unsigned char)value;
187 if (str) {
188 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
189 *str = (unsigned char)((value & 0x3f) | 0x80);
196 if (str) {
197 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
198 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
199 *str = (unsigned char)((value & 0x3f) | 0x80);
206 if (str) {
207 *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
208 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
209 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
210 *str = (unsigned char)((value & 0x3f) | 0x80);
217 if (str) {
218 *str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8);
219 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
220 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
221 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
222 *str = (unsigned char)((value & 0x3f) | 0x80);
228 if (str) {
229 *str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc);
230 *str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80);
231 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
232 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
233 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
234 *str = (unsigned char)((value & 0x3f) | 0x80);