Lines Matching defs:ret

44 	isc_result_t ret;
61 ret = dst_context_create(key, mctx, &ctx);
62 if (ret != ISC_R_SUCCESS) {
64 isc_result_totext(ret));
67 ret = dst_context_adddata(ctx, &datareg);
68 if (ret != ISC_R_SUCCESS) {
70 isc_result_totext(ret));
74 ret = dst_context_sign(ctx, &sigbuf);
76 isc_result_totext(ret));
81 ret = dst_context_create(key, mctx, &ctx);
82 if (ret != ISC_R_SUCCESS) {
84 isc_result_totext(ret));
87 ret = dst_context_adddata(ctx, &datareg);
88 if (ret != ISC_R_SUCCESS) {
90 isc_result_totext(ret));
94 ret = dst_context_verify(ctx, &sigreg);
96 isc_result_totext(ret));
107 isc_result_t ret;
111 ret = dst_key_todns(key, &buf1);
113 isc_result_totext(ret));
114 if (ret != ISC_R_SUCCESS)
116 ret = dst_key_fromdns(dst_key_name(key), dns_rdataclass_in,
119 isc_result_totext(ret));
120 if (ret != ISC_R_SUCCESS)
123 ret = dst_key_todns(newkey, &buf2);
125 isc_result_totext(ret));
126 if (ret != ISC_R_SUCCESS)
140 isc_result_t ret;
142 ret = dst_key_fromfile(name, id, alg, type, current, mctx, &key);
143 printf("read(%d) returned: %s\n", alg, isc_result_totext(ret));
144 if (ret != 0)
146 ret = dst_key_tofile(key, type, tmp);
147 printf("write(%d) returned: %s\n", alg, isc_result_totext(ret));
148 if (ret != 0)
158 isc_result_t ret;
165 ret = dst_key_fromfile(name1, id1, alg, type, current, mctx, &key1);
166 printf("read(%d) returned: %s\n", alg, isc_result_totext(ret));
167 if (ret != 0)
169 ret = dst_key_fromfile(name2, id2, alg, type, current, mctx, &key2);
170 printf("read(%d) returned: %s\n", alg, isc_result_totext(ret));
171 if (ret != 0)
174 ret = dst_key_tofile(key1, type, tmp);
175 printf("write(%d) returned: %s\n", alg, isc_result_totext(ret));
176 if (ret != 0)
178 ret = dst_key_tofile(key2, type, tmp);
179 printf("write(%d) returned: %s\n", alg, isc_result_totext(ret));
180 if (ret != 0)
184 ret = dst_key_computesecret(key1, key2, &b1);
185 printf("computesecret() returned: %s\n", isc_result_totext(ret));
186 if (ret != 0)
190 ret = dst_key_computesecret(key2, key1, &b2);
191 printf("computesecret() returned: %s\n", isc_result_totext(ret));
192 if (ret != 0)
217 isc_result_t ret;
220 ret = dst_key_generate(dns_rootname, alg, 512, 0, 0, 0,
222 printf("generate(%d) returned: %s\n", alg, isc_result_totext(ret));
223 if (ret != ISC_R_SUCCESS)