Lines Matching defs:proto
49 _clean_trash(ipsec_proto_t *proto, int num)
53 if (proto == NULL)
57 free(proto[num].proto_name);
58 free(proto[num].proto_pkg);
59 for (alg_offset = 0; alg_offset < proto[num].proto_numalgs;
61 freeipsecalgent(proto[num].proto_algs[alg_offset]);
62 free(proto[num].proto_algs);
63 for (alg_offset = 0; alg_offset < proto[num].proto_algs_npkgs;
65 free(proto[num].proto_algs_pkgs[alg_offset].pkg_name);
66 free(proto[num].proto_algs_pkgs);
69 free(proto);
281 /* record proto as being part of current pkg */
343 "(proto %d)", alg_num,
354 "(proto %d)", alg_num,
365 "(proto %d)", alg_num,
386 "invalid key sizes for alg %d (proto %d)",
400 "invalid block sizes for alg %d (proto %d)",
432 "params for alg %d (proto %d)",
816 ipsec_proto_t *proto;
824 proto = findprotobynum(proto_num);
825 if (proto != NULL) {
826 *nentries = proto->proto_numalgs;
831 rc = malloc((proto->proto_numalgs == 0) ? 1 :
832 proto->proto_numalgs * sizeof (int));
834 for (i = 0; i < proto->proto_numalgs; i++)
835 rc[i] = proto->proto_algs[i]->a_alg_num;
845 ipsec_proto_t *proto;
857 proto = findprotobynum(proto_num);
858 if (proto != NULL) {
859 for (i = 0; i < proto->proto_numalgs; i++) {
860 for (name_check = proto->proto_algs[i]->a_names;
869 proto->proto_algs[i]);
890 ipsec_proto_t *proto;
898 proto = findprotobynum(proto_num);
899 if (proto != NULL) {
900 for (i = 0; i < proto->proto_numalgs; i++) {
901 if (proto->proto_algs[i]->a_alg_num == alg_num) {
902 rc = _duplicate_alg(proto->proto_algs[i]);
921 ipsec_proto_t *proto;
926 proto = findprotobyname(proto_name);
927 if (proto != NULL)
928 rc = proto->proto_num;
936 ipsec_proto_t *proto;
942 proto = findprotobynum(proto_num);
943 if (proto != NULL)
944 rc = strdup(proto->proto_name);