Lines Matching defs: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(
153 aMech->mech->context,
157 map_error(minor_status, aMech->mech);
159 aMech = aMech->next;
373 gss_mech_info aMech;
382 if ((aMech = searchMechList(oid)) == NULL ||
383 aMech->optionStr == NULL) {
392 if (aMech->optionStr)
393 modOptions = strdup(aMech->optionStr);
408 gss_mech_info aMech;
417 if ((aMech = searchMechList(oid)) == NULL || aMech->kmodName == NULL) {
426 if (aMech->kmodName)
427 kmodName = strdup(aMech->kmodName);
440 gss_mech_info aMech;
456 aMech = g_mechList;
459 while (aMech != NULL) {
460 if ((aMech->mechNameStr) &&
461 strcmp(aMech->mechNameStr, mechStr) == 0) {
462 *oid = aMech->mech_type;
465 aMech = aMech->next;
479 gss_mech_info aMech;
489 if ((aMech = searchMechList(oid)) == NULL)
492 return (aMech->mechNameStr);
503 gss_mech_info aMech;
514 aMech = g_mechList;
518 if (aMech != NULL) {
519 *mechArray = aMech->mechNameStr;
521 aMech = aMech->next;
563 gss_mech_info aMech;
568 if ((aMech = searchMechList(oid)) != NULL && aMech->mech) {
569 return (aMech->mech);
579 aMech = searchMechList(oid);
582 if (aMech == NULL) {
588 if (aMech->mech) {
590 return (aMech->mech);
594 if ((dl = dlopen(aMech->uLibName, RTLD_NOW)) == NULL) {
596 aMech->uLibName, dlerror());
605 " library [%s]\n", aMech->uLibName);
611 aMech->mech = (*sym)(aMech->mech_type);
613 if (aMech->mech == NULL) {
616 " library [%s]\n", aMech->uLibName);
621 aMech->dl_handle = dl;
624 return (aMech->mech);
631 gss_mech_info aMech;
635 if ((aMech = searchMechList(oid)) != NULL && aMech->mech_ext != NULL)
636 return (aMech->mech_ext);
641 if (aMech->dl_handle == NULL)
662 (gss_acquire_cred_with_password_sfct)dlsym(aMech->dl_handle,
665 /* Set aMech->mech_ext */
668 if (aMech->mech_ext == NULL)
669 aMech->mech_ext = mech_ext;
675 return (aMech->mech_ext);
688 gss_mech_info aMech = g_mechList;
692 return (aMech);
694 while (aMech != NULL) {
695 if (g_OID_equal(aMech->mech_type, oid))
696 return (aMech);
697 aMech = aMech->next;
720 gss_mech_info aMech, tmp;
778 aMech = searchMechList(mechOid);
779 if (aMech && aMech->mech) {
862 if (aMech) {
867 if (aMech->kmodName) {
868 free(aMech->kmodName);
869 aMech->kmodName = NULL;
872 if (aMech->optionStr) {
873 free(aMech->optionStr);
874 aMech->optionStr = NULL;
878 if (aMech->uLibName)
879 free(aMech->uLibName);
880 aMech->uLibName = tmpStr;
884 aMech->kmodName = strdup(kernMod);
887 aMech->optionStr = strdup(modOptions);
896 aMech = malloc(sizeof (struct gss_mech_config));
897 if (aMech == NULL) {
902 (void) memset(aMech, 0, sizeof (struct gss_mech_config));
903 aMech->mech_type = mechOid;
904 aMech->uLibName = strdup(sharedPath);
905 aMech->mechNameStr = strdup(oidStr);
908 if (aMech->uLibName == NULL || aMech->mechNameStr == NULL) {
909 if (aMech->uLibName)
910 free(aMech->uLibName);
911 if (aMech->mechNameStr)
912 free(aMech->mechNameStr);
915 free(aMech);
919 aMech->kmodName = strdup(kernMod);
922 aMech->optionStr = strdup(modOptions);
929 g_mechListTail = aMech;
932 tmp->next = aMech;
935 g_mechList = aMech;