X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fgss%2Fsvcgssd_mech2file.c;h=43c0d78b9a70427fa77141f971bf49d5d28b0c36;hp=ca98f4298ea060de2bf9cc0680bbad2b8e659844;hb=70e9d4ecc9130aeed1260d78cd8b33a5cde6edd7;hpb=e4761eb1f4d564f111be66a61ac84f9f9be97fc2;ds=sidebyside diff --git a/lustre/utils/gss/svcgssd_mech2file.c b/lustre/utils/gss/svcgssd_mech2file.c index ca98f42..43c0d78 100644 --- a/lustre/utils/gss/svcgssd_mech2file.c +++ b/lustre/utils/gss/svcgssd_mech2file.c @@ -50,12 +50,47 @@ struct oid2mech { }; static const struct oid2mech o2m[] = { - {{9, "\052\206\110\206\367\022\001\002\002"}, "krb5"}, - {{7, "\053\006\001\005\005\001\003"}, "spkm3"}, - {{7, "\053\006\001\005\005\001\009"}, "lipkey"}, - {{12, "\053\006\001\004\001\311\146\215\126\001\000\000"}, "gssnull"}, - {{12, "\053\006\001\004\001\311\146\215\126\001\000\001"}, "sk"}, - {{0,0},""}, + { + .mech = { + .length = 9, + .elements = "\052\206\110\206\367\022\001\002\002", + }, + .mechname = "krb5", + }, + { + .mech = { + .length = 7, + .elements = "\053\006\001\005\005\001\003", + }, + .mechname = "spkm3", + }, + { + .mech = { + .length = 7, + .elements = "\053\006\001\005\005\001\009", + }, + .mechname = "lipkey", + }, + { + .mech = { + .length = 12, + .elements = "\053\006\001\004\001\311\146\215\126\001\000\000", + }, + .mechname = "gssnull", + }, + { + .mech = { + .length = 12, + .elements = "\053\006\001\004\001\311\146\215\126\001\000\001", + }, + .mechname = "sk", + }, + { + .mech = { + .length = 0, + }, + .mechname = "", + } }; /*