Lines Matching refs:aMech

128 	gss_mech_info aMech = g_mechList;
135 while (aMech != NULL) {
151 if (aMech->mech && aMech->mech->gss_internal_release_oid) {
152 major = aMech->mech->gss_internal_release_oid(
156 map_error(minor_status, aMech->mech);
158 aMech = aMech->next;
372 gss_mech_info aMech;
381 if ((aMech = searchMechList(oid)) == NULL ||
382 aMech->optionStr == NULL) {
391 if (aMech->optionStr)
392 modOptions = strdup(aMech->optionStr);
407 gss_mech_info aMech;
416 if ((aMech = searchMechList(oid)) == NULL || aMech->kmodName == NULL) {
425 if (aMech->kmodName)
426 kmodName = strdup(aMech->kmodName);
439 gss_mech_info aMech;
455 aMech = g_mechList;
458 while (aMech != NULL) {
459 if ((aMech->mechNameStr) &&
460 strcmp(aMech->mechNameStr, mechStr) == 0) {
461 *oid = aMech->mech_type;
464 aMech = aMech->next;
478 gss_mech_info aMech;
488 if ((aMech = searchMechList(oid)) == NULL)
491 return (aMech->mechNameStr);
502 gss_mech_info aMech;
513 aMech = g_mechList;
517 if (aMech != NULL) {
518 *mechArray = aMech->mechNameStr;
520 aMech = aMech->next;
562 gss_mech_info aMech;
567 if ((aMech = searchMechList(oid)) != NULL && aMech->mech) {
568 return (aMech->mech);
578 aMech = searchMechList(oid);
581 if (aMech == NULL) {
587 if (aMech->mech) {
589 return (aMech->mech);
593 if ((dl = dlopen(aMech->uLibName, RTLD_NOW)) == NULL) {
595 aMech->uLibName, dlerror());
604 " library [%s]\n", aMech->uLibName);
610 aMech->mech = (*sym)(aMech->mech_type);
612 if (aMech->mech == NULL) {
615 " library [%s]\n", aMech->uLibName);
620 aMech->dl_handle = dl;
623 return (aMech->mech);
630 gss_mech_info aMech;
634 if ((aMech = searchMechList(oid)) != NULL && aMech->mech_ext != NULL)
635 return (aMech->mech_ext);
640 if (aMech->dl_handle == NULL)
661 (gss_acquire_cred_with_password_sfct)dlsym(aMech->dl_handle,
664 /* Set aMech->mech_ext */
667 if (aMech->mech_ext == NULL)
668 aMech->mech_ext = mech_ext;
674 return (aMech->mech_ext);
687 gss_mech_info aMech = g_mechList;
691 return (aMech);
693 while (aMech != NULL) {
694 if (g_OID_equal(aMech->mech_type, oid))
695 return (aMech);
696 aMech = aMech->next;
719 gss_mech_info aMech, tmp;
777 aMech = searchMechList(mechOid);
778 if (aMech && aMech->mech) {
861 if (aMech) {
866 if (aMech->kmodName) {
867 free(aMech->kmodName);
868 aMech->kmodName = NULL;
871 if (aMech->optionStr) {
872 free(aMech->optionStr);
873 aMech->optionStr = NULL;
877 if (aMech->uLibName)
878 free(aMech->uLibName);
879 aMech->uLibName = tmpStr;
883 aMech->kmodName = strdup(kernMod);
886 aMech->optionStr = strdup(modOptions);
895 aMech = malloc(sizeof (struct gss_mech_config));
896 if (aMech == NULL) {
901 (void) memset(aMech, 0, sizeof (struct gss_mech_config));
902 aMech->mech_type = mechOid;
903 aMech->uLibName = strdup(sharedPath);
904 aMech->mechNameStr = strdup(oidStr);
907 if (aMech->uLibName == NULL || aMech->mechNameStr == NULL) {
908 if (aMech->uLibName)
909 free(aMech->uLibName);
910 if (aMech->mechNameStr)
911 free(aMech->mechNameStr);
914 free(aMech);
918 aMech->kmodName = strdup(kernMod);
921 aMech->optionStr = strdup(modOptions);
928 g_mechListTail = aMech;
931 tmp->next = aMech;
934 g_mechList = aMech;