Deleted Added
full compact
aldap.c (302408) aldap.c (309872)
1/* $FreeBSD: stable/11/usr.sbin/ypldap/aldap.c 300639 2016-05-25 01:37:25Z truckman $ */
1/* $FreeBSD: stable/11/usr.sbin/ypldap/aldap.c 309872 2016-12-12 02:24:54Z araujo $ */
2/* $Id: aldap.c,v 1.32 2016/04/27 10:53:27 schwarze Exp $ */
3/* $OpenBSD: aldap.c,v 1.32 2016/04/27 10:53:27 schwarze Exp $ */
4
5/*
6 * Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
7 * Copyright (c) 2006, 2007 Marc Balmer <mbalmer@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any

--- 1191 unchanged lines hidden (view full) ---

1201isu8cont(unsigned char c)
1202{
1203 return (c & (0x80 | 0x40)) == 0x80;
1204}
1205
1206/*
1207 * Parse a LDAP value
1208 * notes:
2/* $Id: aldap.c,v 1.32 2016/04/27 10:53:27 schwarze Exp $ */
3/* $OpenBSD: aldap.c,v 1.32 2016/04/27 10:53:27 schwarze Exp $ */
4
5/*
6 * Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
7 * Copyright (c) 2006, 2007 Marc Balmer <mbalmer@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any

--- 1191 unchanged lines hidden (view full) ---

1201isu8cont(unsigned char c)
1202{
1203 return (c & (0x80 | 0x40)) == 0x80;
1204}
1205
1206/*
1207 * Parse a LDAP value
1208 * notes:
1209 * the argument u should be a NULL terminated sequence of ASCII bytes.
1209 * the argument p should be a NUL-terminated sequence of ASCII bytes.
1210 */
1211char *
1212parseval(char *p, size_t len)
1213{
1214 char hex[3];
1215 char *cp = p, *buffer, *newbuffer;
1216 size_t size, newsize, i, j;
1217

--- 51 unchanged lines hidden ---
1210 */
1211char *
1212parseval(char *p, size_t len)
1213{
1214 char hex[3];
1215 char *cp = p, *buffer, *newbuffer;
1216 size_t size, newsize, i, j;
1217

--- 51 unchanged lines hidden ---