Lines Matching refs:kt
994 const struct keytype *kt;
996 for (kt = keytypes; kt->type != -1; kt++) {
997 if (kt->type == k->type)
998 return kt->shortname;
1006 const struct keytype *kt;
1008 for (kt = keytypes; kt->type != -1; kt++) {
1009 if (kt->type == type && (kt->nid == 0 || kt->nid == nid))
1010 return kt->name;
1031 const struct keytype *kt;
1033 for (kt = keytypes; kt->type != -1; kt++) {
1035 if ((kt->name != NULL && strcmp(name, kt->name) == 0) ||
1036 (!kt->cert && strcasecmp(kt->shortname, name) == 0))
1037 return kt->type;
1046 const struct keytype *kt;
1048 for (kt = keytypes; kt->type != -1; kt++) {
1049 if (kt->type != KEY_ECDSA && kt->type != KEY_ECDSA_CERT)
1051 if (kt->name != NULL && strcmp(name, kt->name) == 0)
1052 return kt->nid;
1063 const struct keytype *kt;
1065 for (kt = keytypes; kt->type != -1; kt++) {
1066 if (kt->name == NULL)
1068 if ((certs_only && !kt->cert) || (plain_only && kt->cert))
1072 nlen = strlen(kt->name);
1074 memcpy(ret + rlen, kt->name, nlen + 1);
1083 const struct keytype *kt;
1085 for (kt = keytypes; kt->type != -1; kt++) {
1086 if (kt->type == type)
1087 return kt->cert;