ai                119 lib/replace/getaddrinfo.c 	struct addrinfo *ai = SMB_MALLOC(sizeof(*ai));
ai                121 lib/replace/getaddrinfo.c 	if (!ai) {
ai                124 lib/replace/getaddrinfo.c 	memset(ai, '\0', sizeof(*ai));
ai                128 lib/replace/getaddrinfo.c 		free(ai);
ai                138 lib/replace/getaddrinfo.c 	ai->ai_flags = 0;
ai                139 lib/replace/getaddrinfo.c 	ai->ai_family = AF_INET;
ai                140 lib/replace/getaddrinfo.c 	ai->ai_socktype = hints->ai_socktype;
ai                141 lib/replace/getaddrinfo.c 	ai->ai_protocol = hints->ai_protocol;
ai                142 lib/replace/getaddrinfo.c 	ai->ai_addrlen = sizeof(*psin);
ai                143 lib/replace/getaddrinfo.c 	ai->ai_addr = (struct sockaddr *) psin;
ai                144 lib/replace/getaddrinfo.c 	ai->ai_canonname = NULL;
ai                145 lib/replace/getaddrinfo.c 	ai->ai_next = NULL;
ai                147 lib/replace/getaddrinfo.c 	return ai;
ai                162 lib/replace/getaddrinfo.c 	struct addrinfo *ai = NULL;
ai                171 lib/replace/getaddrinfo.c 	ai = alloc_entry(hints, ip, port);
ai                172 lib/replace/getaddrinfo.c 	if (!ai) {
ai                182 lib/replace/getaddrinfo.c 			ai->ai_canonname = get_my_canon_name(&err);
ai                184 lib/replace/getaddrinfo.c 			ai->ai_canonname =
ai                187 lib/replace/getaddrinfo.c 		if (ai->ai_canonname == NULL) {
ai                188 lib/replace/getaddrinfo.c 			freeaddrinfo(ai);
ai                193 lib/replace/getaddrinfo.c 	*res = ai;
ai                226 lib/replace/getaddrinfo.c 		struct addrinfo *ai = alloc_entry(hints, ip, port);
ai                228 lib/replace/getaddrinfo.c 		if (!ai) {
ai                234 lib/replace/getaddrinfo.c 			listp = ai;
ai                235 lib/replace/getaddrinfo.c 			prevp = ai;
ai                236 lib/replace/getaddrinfo.c 			ai->ai_canonname = SMB_STRDUP(hp->h_name);
ai                237 lib/replace/getaddrinfo.c 			if (!ai->ai_canonname) {
ai                242 lib/replace/getaddrinfo.c 			prevp->ai_next = ai;
ai                243 lib/replace/getaddrinfo.c 			prevp = ai;
ai                496 source3/libsmb/clikrb5.c 	struct addrinfo *ai;
ai                531 source3/libsmb/clikrb5.c 		rc = krb5_krbhst_get_addrinfo(ctx, hinfo, &ai);
ai                537 source3/libsmb/clikrb5.c 		if (hinfo->ai && hinfo->ai->ai_family == AF_INET) 
ai                538 source3/libsmb/clikrb5.c 			memcpy(&sa[i], hinfo->ai->ai_addr, sizeof(struct sockaddr));
ai                217 source4/auth/kerberos/krb5_init_context.c 	struct addrinfo *ai, *a;
ai                224 source4/auth/kerberos/krb5_init_context.c 	ret = krb5_krbhst_get_addrinfo(context, hi, &ai);
ai                229 source4/auth/kerberos/krb5_init_context.c 	for (a = ai; a; a = ai->ai_next) {
ai                378 source4/heimdal/lib/hcrypto/bn.c     const heim_integer *ai = (const heim_integer *)a;
ai                386 source4/heimdal/lib/hcrypto/bn.c     if (ai->negative && bi->negative)
ai                388 source4/heimdal/lib/hcrypto/bn.c     if (ai->length < bi->length) {
ai                390 source4/heimdal/lib/hcrypto/bn.c 	bi = ai; ai = si;
ai                394 source4/heimdal/lib/hcrypto/bn.c     ci.length = ai->length + 1;
ai                399 source4/heimdal/lib/hcrypto/bn.c     ap = &((const unsigned char *)ai->data)[ai->length - 1];
ai                409 source4/heimdal/lib/hcrypto/bn.c     for (len = ai->length - bi->length; len > 0; len--) {
ai                940 source4/heimdal/lib/hx509/ca.c 	const AuthorityKeyIdentifier *ai,
ai               1174 source4/heimdal/lib/hx509/ca.c     if (ai) {
ai               1176 source4/heimdal/lib/hx509/ca.c 			   ai, &size, ret);
ai               1351 source4/heimdal/lib/hx509/ca.c 			   AuthorityKeyIdentifier *ai)
ai               1358 source4/heimdal/lib/hx509/ca.c 	ai->keyIdentifier = calloc(1, sizeof(*ai->keyIdentifier));
ai               1359 source4/heimdal/lib/hx509/ca.c 	if (ai->keyIdentifier == NULL) {
ai               1365 source4/heimdal/lib/hx509/ca.c 	ret = der_copy_octet_string(&si, ai->keyIdentifier);
ai               1380 source4/heimdal/lib/hx509/ca.c 	ai->authorityCertIssuer =
ai               1381 source4/heimdal/lib/hx509/ca.c 	    calloc(1, sizeof(*ai->authorityCertIssuer));
ai               1382 source4/heimdal/lib/hx509/ca.c 	if (ai->authorityCertIssuer == NULL) {
ai               1387 source4/heimdal/lib/hx509/ca.c 	ai->authorityCertSerialNumber =
ai               1388 source4/heimdal/lib/hx509/ca.c 	    calloc(1, sizeof(*ai->authorityCertSerialNumber));
ai               1389 source4/heimdal/lib/hx509/ca.c 	if (ai->authorityCertSerialNumber == NULL) {
ai               1402 source4/heimdal/lib/hx509/ca.c 	if (ai->authorityCertSerialNumber == NULL) {
ai               1420 source4/heimdal/lib/hx509/ca.c 	ai->authorityCertIssuer->val = gns.val;
ai               1421 source4/heimdal/lib/hx509/ca.c 	ai->authorityCertIssuer->len = gns.len;
ai               1424 source4/heimdal/lib/hx509/ca.c 				    ai->authorityCertSerialNumber);
ai               1425 source4/heimdal/lib/hx509/ca.c 	if (ai->authorityCertSerialNumber == NULL) {
ai               1433 source4/heimdal/lib/hx509/ca.c 	free_AuthorityKeyIdentifier(ai);
ai               1469 source4/heimdal/lib/hx509/ca.c     AuthorityKeyIdentifier ai;
ai               1472 source4/heimdal/lib/hx509/ca.c     memset(&ai, 0, sizeof(ai));
ai               1476 source4/heimdal/lib/hx509/ca.c     ret = get_AuthorityKeyIdentifier(context, signer_cert, &ai);
ai               1483 source4/heimdal/lib/hx509/ca.c 		  &ai,
ai               1488 source4/heimdal/lib/hx509/ca.c     free_AuthorityKeyIdentifier(&ai);
ai                589 source4/heimdal/lib/hx509/cert.c 			   AuthorityKeyIdentifier *ai)
ai                595 source4/heimdal/lib/hx509/cert.c     memset(ai, 0, sizeof(*ai));
ai                603 source4/heimdal/lib/hx509/cert.c 					 ai, &size);
ai                900 source4/heimdal/lib/hx509/cert.c     AuthorityKeyIdentifier ai;
ai                912 source4/heimdal/lib/hx509/cert.c     memset(&ai, 0, sizeof(ai));
ai                920 source4/heimdal/lib/hx509/cert.c     ret_ai = find_extension_auth_key_id(subject, &ai);
ai                935 source4/heimdal/lib/hx509/cert.c 	} else if (ai.keyIdentifier) {
ai                941 source4/heimdal/lib/hx509/cert.c     if (ai.keyIdentifier == NULL) {
ai                944 source4/heimdal/lib/hx509/cert.c 	if (ai.authorityCertIssuer == NULL)
ai                946 source4/heimdal/lib/hx509/cert.c 	if (ai.authorityCertSerialNumber == NULL)
ai                949 source4/heimdal/lib/hx509/cert.c 	diff = der_heim_integer_cmp(ai.authorityCertSerialNumber,
ai                953 source4/heimdal/lib/hx509/cert.c 	if (ai.authorityCertIssuer->len != 1)
ai                955 source4/heimdal/lib/hx509/cert.c 	if (ai.authorityCertIssuer->val[0].element != choice_GeneralName_directoryName)
ai                959 source4/heimdal/lib/hx509/cert.c 	    ai.authorityCertIssuer->val[0].u.directoryName.element;
ai                961 source4/heimdal/lib/hx509/cert.c 	    ai.authorityCertIssuer->val[0].u.directoryName.u.rdnSequence;
ai                972 source4/heimdal/lib/hx509/cert.c 	diff = der_heim_octet_string_cmp(ai.keyIdentifier, &si);
ai                977 source4/heimdal/lib/hx509/cert.c     free_AuthorityKeyIdentifier(&ai);
ai               1040 source4/heimdal/lib/hx509/cert.c     AuthorityKeyIdentifier ai;
ai               1045 source4/heimdal/lib/hx509/cert.c     memset(&ai, 0, sizeof(ai));
ai               1053 source4/heimdal/lib/hx509/cert.c 	ret = find_extension_auth_key_id(current->data, &ai);
ai               1060 source4/heimdal/lib/hx509/cert.c 	if (ai.keyIdentifier == NULL) {
ai               1061 source4/heimdal/lib/hx509/cert.c 	    free_AuthorityKeyIdentifier(&ai);
ai               1068 source4/heimdal/lib/hx509/cert.c 	q.subject_id = ai.keyIdentifier;
ai               1081 source4/heimdal/lib/hx509/cert.c 	    free_AuthorityKeyIdentifier(&ai);
ai               1090 source4/heimdal/lib/hx509/cert.c 	    free_AuthorityKeyIdentifier(&ai);
ai               1094 source4/heimdal/lib/hx509/cert.c     free_AuthorityKeyIdentifier(&ai);
ai                361 source4/heimdal/lib/hx509/cms.c     AlgorithmIdentifier *ai;
ai                462 source4/heimdal/lib/hx509/cms.c     ai = &ed.encryptedContentInfo.contentEncryptionAlgorithm;
ai                463 source4/heimdal/lib/hx509/cms.c     if (ai->parameters) {
ai                464 source4/heimdal/lib/hx509/cms.c 	params_data.data = ai->parameters->data;
ai                465 source4/heimdal/lib/hx509/cms.c 	params_data.length = ai->parameters->length;
ai                473 source4/heimdal/lib/hx509/cms.c 	ret = hx509_crypto_init(context, NULL, &ai->algorithm, &crypto);
ai               1384 source4/heimdal/lib/hx509/cms.c     AlgorithmIdentifier *ai;
ai               1410 source4/heimdal/lib/hx509/cms.c     ai = &ed.encryptedContentInfo.contentEncryptionAlgorithm;
ai               1411 source4/heimdal/lib/hx509/cms.c     if (ai->parameters == NULL) {
ai               1419 source4/heimdal/lib/hx509/cms.c 			     ai,
ai               2372 source4/heimdal/lib/hx509/crypto.c 		   const AlgorithmIdentifier *ai,
ai               2387 source4/heimdal/lib/hx509/crypto.c 		   const AlgorithmIdentifier *ai,
ai               2404 source4/heimdal/lib/hx509/crypto.c     enc_oid = find_string2key(&ai->algorithm, &c, &md, &s2k);
ai               2442 source4/heimdal/lib/hx509/crypto.c 	ret = (*s2k)(context, password, ai->parameters, &crypto,
ai                331 source4/heimdal/lib/hx509/print.c     AuthorityKeyIdentifier ai;
ai                340 source4/heimdal/lib/hx509/print.c 					&ai, &size);
ai                352 source4/heimdal/lib/hx509/print.c     if (ai.keyIdentifier) {
ai                354 source4/heimdal/lib/hx509/print.c 	hex_encode(ai.keyIdentifier->data, ai.keyIdentifier->length, &id);
ai               1096 source4/heimdal/lib/krb5/addr_families.c     struct addrinfo *ai, *a;
ai               1119 source4/heimdal/lib/krb5/addr_families.c     error = getaddrinfo (string, NULL, NULL, &ai);
ai               1130 source4/heimdal/lib/krb5/addr_families.c     for (a = ai; a != NULL; a = a->ai_next)
ai               1137 source4/heimdal/lib/krb5/addr_families.c 	freeaddrinfo(ai);
ai               1142 source4/heimdal/lib/krb5/addr_families.c     for (a = ai, i = 0; a != NULL; a = a->ai_next) {
ai               1143 source4/heimdal/lib/krb5/addr_families.c 	if (krb5_sockaddr2address (context, ai->ai_addr, &addresses->val[i]))
ai               1150 source4/heimdal/lib/krb5/addr_families.c     freeaddrinfo (ai);
ai                544 source4/heimdal/lib/krb5/changepw.c 	struct addrinfo *ai, *a;
ai                562 source4/heimdal/lib/krb5/changepw.c 	ret = krb5_krbhst_get_addrinfo(context, hi, &ai);
ai                566 source4/heimdal/lib/krb5/changepw.c 	for (a = ai; !done && a != NULL; a = a->ai_next) {
ai               4385 source4/heimdal/lib/krb5/crypto.c 		 const AlgorithmIdentifier *ai,
ai               4429 source4/heimdal/lib/krb5/crypto.c     otherinfo.algorithmID = *ai;
ai               4449 source4/heimdal/lib/krb5/crypto.c 	     const struct AlgorithmIdentifier *ai,
ai               4468 source4/heimdal/lib/krb5/crypto.c     if (der_heim_oid_cmp(oid_id_pkinit_kdf_ah_sha1(), &ai->algorithm) != 0) {
ai               4473 source4/heimdal/lib/krb5/crypto.c     if (ai->parameters != NULL &&
ai               4474 source4/heimdal/lib/krb5/crypto.c 	(ai->parameters->length != 2 ||
ai               4475 source4/heimdal/lib/krb5/crypto.c 	 memcmp(ai->parameters->data, "\x05\x00", 2) != 0))
ai               4498 source4/heimdal/lib/krb5/crypto.c     ret = encode_otherinfo(context, ai, client, server,
ai                 63 source4/heimdal/lib/krb5/expand_hostname.c     struct addrinfo *ai, *a, hints;
ai                 72 source4/heimdal/lib/krb5/expand_hostname.c     error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
ai                 75 source4/heimdal/lib/krb5/expand_hostname.c     for (a = ai; a != NULL; a = a->ai_next) {
ai                 78 source4/heimdal/lib/krb5/expand_hostname.c 	    freeaddrinfo (ai);
ai                 88 source4/heimdal/lib/krb5/expand_hostname.c     freeaddrinfo (ai);
ai                128 source4/heimdal/lib/krb5/expand_hostname.c     struct addrinfo *ai, *a, hints;
ai                139 source4/heimdal/lib/krb5/expand_hostname.c     error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
ai                144 source4/heimdal/lib/krb5/expand_hostname.c     for (a = ai; a != NULL; a = a->ai_next) {
ai                148 source4/heimdal/lib/krb5/expand_hostname.c 		freeaddrinfo (ai);
ai                154 source4/heimdal/lib/krb5/expand_hostname.c 		freeaddrinfo (ai);
ai                160 source4/heimdal/lib/krb5/expand_hostname.c     freeaddrinfo(ai);
ai                 41 source4/heimdal/lib/krb5/get_for_creds.c 	  struct addrinfo *ai)
ai                 49 source4/heimdal/lib/krb5/get_for_creds.c     for (a = ai; a != NULL; a = a->ai_next)
ai                 64 source4/heimdal/lib/krb5/get_for_creds.c     for (a = ai; a != NULL; a = a->ai_next) {
ai                209 source4/heimdal/lib/krb5/get_for_creds.c     struct addrinfo *ai;
ai                238 source4/heimdal/lib/krb5/get_for_creds.c 	ret = getaddrinfo (hostname, NULL, NULL, &ai);
ai                248 source4/heimdal/lib/krb5/get_for_creds.c 	ret = add_addrs (context, &addrs, ai);
ai                249 source4/heimdal/lib/krb5/get_for_creds.c 	freeaddrinfo (ai);
ai                716 source4/heimdal/lib/krb5/krb5.h     struct addrinfo *ai;
ai                239 source4/heimdal/lib/krb5/krbhst.c     if (hi->ai != NULL)
ai                240 source4/heimdal/lib/krb5/krbhst.c 	freeaddrinfo(hi->ai);
ai                261 source4/heimdal/lib/krb5/krbhst.c     (*to)->ai = from->ai;
ai                262 source4/heimdal/lib/krb5/krbhst.c     from->ai = NULL;
ai                346 source4/heimdal/lib/krb5/krbhst.c 			 struct addrinfo **ai)
ai                352 source4/heimdal/lib/krb5/krbhst.c     if (host->ai == NULL) {
ai                355 source4/heimdal/lib/krb5/krbhst.c 	ret = getaddrinfo(host->hostname, portstr, &hints, &host->ai);
ai                359 source4/heimdal/lib/krb5/krbhst.c     *ai = host->ai;
ai                427 source4/heimdal/lib/krb5/krbhst.c     struct addrinfo *ai;
ai                451 source4/heimdal/lib/krb5/krbhst.c     ret = getaddrinfo(host, portstr, &hints, &ai);
ai                468 source4/heimdal/lib/krb5/krbhst.c 	hi->ai    = ai;
ai                488 source4/heimdal/lib/krb5/krbhst.c     struct addrinfo hints, *ai;
ai                501 source4/heimdal/lib/krb5/krbhst.c     ret = getaddrinfo(host, port, &hints, &ai);
ai                513 source4/heimdal/lib/krb5/krbhst.c     hi->ai    = ai;
ai                970 source4/heimdal/lib/krb5/pkinit.c 				    hi->ai->ai_addr, hi->ai->ai_addrlen);
ai                961 source4/heimdal/lib/krb5/principal.c 	struct addrinfo hints, *ai;
ai                965 source4/heimdal/lib/krb5/principal.c 	ret = getaddrinfo(instance, NULL, &hints, &ai);
ai                968 source4/heimdal/lib/krb5/principal.c 	    for (a = ai; a != NULL; a = a->ai_next) {
ai                975 source4/heimdal/lib/krb5/principal.c 	    freeaddrinfo (ai);
ai                267 source4/heimdal/lib/krb5/send_to_kdc.c     struct addrinfo *ai, *a;
ai                285 source4/heimdal/lib/krb5/send_to_kdc.c     ret = getaddrinfo (proxy, portstr, &hints, &ai);
ai                290 source4/heimdal/lib/krb5/send_to_kdc.c     for (a = ai; a != NULL; a = a->ai_next) {
ai                302 source4/heimdal/lib/krb5/send_to_kdc.c 	freeaddrinfo (ai);
ai                305 source4/heimdal/lib/krb5/send_to_kdc.c     freeaddrinfo (ai);
ai                382 source4/heimdal/lib/krb5/send_to_kdc.c 	     struct addrinfo *ai, *a;
ai                409 source4/heimdal/lib/krb5/send_to_kdc.c 	     ret = krb5_krbhst_get_addrinfo(context, hi, &ai);
ai                413 source4/heimdal/lib/krb5/send_to_kdc.c 	     for (a = ai; a != NULL; a = a->ai_next) {
ai                 46 source4/heimdal/lib/roken/freeaddrinfo.c freeaddrinfo(struct addrinfo *ai)
ai                 50 source4/heimdal/lib/roken/freeaddrinfo.c     while(ai != NULL) {
ai                 51 source4/heimdal/lib/roken/freeaddrinfo.c 	free (ai->ai_canonname);
ai                 52 source4/heimdal/lib/roken/freeaddrinfo.c 	free (ai->ai_addr);
ai                 53 source4/heimdal/lib/roken/freeaddrinfo.c 	tofree = ai;
ai                 54 source4/heimdal/lib/roken/freeaddrinfo.c 	ai = ai->ai_next;