Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 1349) sorted by relevance

12345678910>>...54

/mirbsd/src/lib/libssl/src/crypto/bn/
Dbn_gcd.c128 if (a == NULL || b == NULL) goto err; in BN_gcd()
130 if (BN_copy(a,in_a) == NULL) goto err; in BN_gcd()
131 if (BN_copy(b,in_b) == NULL) goto err; in BN_gcd()
137 if (t == NULL) goto err; in BN_gcd()
139 if (BN_copy(r,t) == NULL) goto err; in BN_gcd()
141 err: in BN_gcd()
163 if (!BN_sub(a,a,b)) goto err; in euclid()
164 if (!BN_rshift1(a,a)) goto err; in euclid()
170 if (!BN_rshift1(b,b)) goto err; in euclid()
179 if (!BN_rshift1(a,a)) goto err; in euclid()
[all …]
Dbn_prime.c145 if (ctx == NULL) goto err; in BN_generate_prime()
148 if ((rnd=BN_new()) == NULL) goto err; in BN_generate_prime()
156 if (!probable_prime(rnd,bits)) goto err; in BN_generate_prime()
163 goto err; in BN_generate_prime()
168 goto err; in BN_generate_prime()
177 if (i == -1) goto err; in BN_generate_prime()
186 if (!BN_rshift1(&t,rnd)) goto err; in BN_generate_prime()
191 if (j == -1) goto err; in BN_generate_prime()
195 if (j == -1) goto err; in BN_generate_prime()
204 err: in BN_generate_prime()
[all …]
Dbn_exp.c137 if ((v = BN_CTX_get(ctx)) == NULL) goto err; in BN_exp()
139 if (BN_copy(v,a) == NULL) goto err; in BN_exp()
143 { if (BN_copy(rr,a) == NULL) goto err; } in BN_exp()
144 else { if (!BN_one(rr)) goto err; } in BN_exp()
148 if (!BN_sqr(v,v,ctx)) goto err; in BN_exp()
151 if (!BN_mul(rr,rr,v,ctx)) goto err; in BN_exp()
155 err: in BN_exp()
261 if ((aa = BN_CTX_get(ctx)) == NULL) goto err; in BN_mod_exp_recp()
267 if (!BN_copy(aa, m)) goto err; in BN_mod_exp_recp()
269 if (BN_RECP_CTX_set(&recp,aa,ctx) <= 0) goto err; in BN_mod_exp_recp()
[all …]
Dbn_mont.c135 if (tmp == NULL) goto err; in BN_mod_mul_montgomery()
140 if (!BN_sqr(tmp,a,ctx)) goto err; in BN_mod_mul_montgomery()
144 if (!BN_mul(tmp,a,b,ctx)) goto err; in BN_mod_mul_montgomery()
147 if (!BN_from_montgomery(r,tmp,mont,ctx)) goto err; in BN_mod_mul_montgomery()
149 err: in BN_mod_mul_montgomery()
165 if ((r = BN_CTX_get(ctx)) == NULL) goto err; in BN_from_montgomery()
167 if (!BN_copy(r,a)) goto err; in BN_from_montgomery()
179 if (bn_wexpand(r,max) == NULL) goto err; in BN_from_montgomery()
237 goto err; in BN_from_montgomery()
243 if (bn_wexpand(ret,ri) == NULL) goto err; in BN_from_montgomery()
[all …]
/mirbsd/src/gnu/usr.bin/perl/ext/Errno/
DErrno_pm.PL7 my %err = ();
77 $err{$1} = $2
82 $err{$1} = 1
202 my $err;
206 die "No error definitions found" unless keys %err;
221 foreach $err (keys %wsa) {
222 print CPPI "#ifndef $err\n";
223 print CPPI "#define $err WSA$err\n";
225 $err{$err} = 1;
229 foreach $err (keys %err) {
[all …]
/mirbsd/src/lib/libssl/src/ssl/
Dssl_txt.c86 if (x == NULL) goto err; in SSL_SESSION_print()
87 if (BIO_puts(bp,"SSL-Session:\n") <= 0) goto err; in SSL_SESSION_print()
96 if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err; in SSL_SESSION_print()
103 goto err; in SSL_SESSION_print()
108 goto err; in SSL_SESSION_print()
114 goto err; in SSL_SESSION_print()
116 if (BIO_puts(bp," Session-ID: ") <= 0) goto err; in SSL_SESSION_print()
119 if (BIO_printf(bp,"%02X",x->session_id[i]) <= 0) goto err; in SSL_SESSION_print()
121 if (BIO_puts(bp,"\n Session-ID-ctx: ") <= 0) goto err; in SSL_SESSION_print()
125 goto err; in SSL_SESSION_print()
[all …]
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dlinux-thread-db.c167 thread_db_err_str (td_err_e err) in thread_db_err_str() argument
171 switch (err) in thread_db_err_str()
216 snprintf (buf, sizeof (buf), "unknown thread_db error '%d'", err); in thread_db_err_str()
260 td_err_e err; in thread_get_info_callback() local
264 err = td_thr_get_info_p (thp, &ti); in thread_get_info_callback()
265 if (err != TD_OK) in thread_get_info_callback()
267 thread_db_err_str (err)); in thread_get_info_callback()
313 td_err_e err; in thread_db_map_id2thr() local
318 err = td_ta_map_id2thr_p (thread_agent, GET_THREAD (thread_info->ptid), in thread_db_map_id2thr()
320 if (err != TD_OK) in thread_db_map_id2thr()
[all …]
/mirbsd/src/lib/libssl/src/crypto/rsa/
Drsa_eay.c184 if ((ctx=BN_CTX_new()) == NULL) goto err; in RSA_eay_public_encrypt()
189 goto err; in RSA_eay_public_encrypt()
210 goto err; in RSA_eay_public_encrypt()
212 if (i <= 0) goto err; in RSA_eay_public_encrypt()
214 if (BN_bin2bn(buf,num,&f) == NULL) goto err; in RSA_eay_public_encrypt()
220 goto err; in RSA_eay_public_encrypt()
227 goto err; in RSA_eay_public_encrypt()
231 rsa->_method_mod_n)) goto err; in RSA_eay_public_encrypt()
241 err: in RSA_eay_public_encrypt()
304 if (!BN_pseudo_rand_range(A,rsa->n)) goto err; in setup_blinding()
[all …]
Drsa_gen.c77 if (ctx == NULL) goto err; in RSA_generate_key()
79 if (ctx2 == NULL) goto err; in RSA_generate_key()
85 if (r3 == NULL) goto err; in RSA_generate_key()
90 if (rsa == NULL) goto err; in RSA_generate_key()
94 if (rsa->e == NULL) goto err; in RSA_generate_key()
111 if (!BN_set_word(rsa->e,e_value)) goto err; in RSA_generate_key()
118 if (rsa->p == NULL) goto err; in RSA_generate_key()
119 if (!BN_sub(r2,rsa->p,BN_value_one())) goto err; in RSA_generate_key()
120 if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err; in RSA_generate_key()
129 if (rsa->q == NULL) goto err; in RSA_generate_key()
[all …]
/mirbsd/src/lib/libssl/src/crypto/asn1/
Dt_x509.c124 if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err; in X509_print_ex()
125 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_print_ex()
130 if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err; in X509_print_ex()
135 if (BIO_write(bp," Serial Number:",22) <= 0) goto err; in X509_print_ex()
149 goto err; in X509_print_ex()
154 if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err; in X509_print_ex()
160 goto err; in X509_print_ex()
169 goto err; in X509_print_ex()
171 goto err; in X509_print_ex()
173 goto err; in X509_print_ex()
[all …]
/mirbsd/src/sys/dev/usb/
Dif_atu.c292 usbd_status err; in atu_usb_request() local
321 err = usbd_sync_transfer(xfer); in atu_usb_request()
343 return(err); in atu_usb_request()
372 int idle_count = 0, err; in atu_wait_completion() local
379 err = atu_get_cmd_status(sc, cmd, statusreq); in atu_wait_completion()
380 if (err) in atu_wait_completion()
381 return err; in atu_wait_completion()
415 int err; in atu_send_mib() local
452 err = atu_usb_request(sc, UT_WRITE_VENDOR_DEVICE, 0x0e, 0x0000, in atu_send_mib()
454 if (err) in atu_send_mib()
[all …]
Dusb_subr.c139 usbd_errstr(usbd_status err) in usbd_errstr() argument
143 if (err < USBD_ERROR_MAX) { in usbd_errstr()
144 return usbd_error_strs[err]; in usbd_errstr()
146 snprintf(buffer, sizeof buffer, "%d", err); in usbd_errstr()
156 usbd_status err; in usbd_get_string_desc() local
164 err = usbd_do_request_flags(dev, &req, sdesc, USBD_SHORT_XFER_OK, in usbd_get_string_desc()
166 if (err) in usbd_get_string_desc()
167 return (err); in usbd_get_string_desc()
173 err = usbd_do_request_flags(dev, &req, sdesc, USBD_SHORT_XFER_OK, in usbd_get_string_desc()
175 if (err) in usbd_get_string_desc()
[all …]
/mirbsd/src/lib/libssl/src/crypto/ocsp/
Docsp_srv.c110 if (!(rsp = OCSP_RESPONSE_new())) goto err; in OCSP_response_create()
111 if (!(ASN1_ENUMERATED_set(rsp->responseStatus, status))) goto err; in OCSP_response_create()
113 if (!(rsp->responseBytes = OCSP_RESPBYTES_new())) goto err; in OCSP_response_create()
116 goto err; in OCSP_response_create()
118 err: in OCSP_response_create()
136 goto err; in OCSP_basic_add1_status()
139 goto err; in OCSP_basic_add1_status()
144 goto err; in OCSP_basic_add1_status()
147 goto err; in OCSP_basic_add1_status()
152 goto err; in OCSP_basic_add1_status()
[all …]
Docsp_prn.c146 if (BIO_write(bp,"OCSP Request Data:\n",19) <= 0) goto err; in OCSP_REQUEST_print()
148 if (BIO_printf(bp," Version: %lu (0x%lx)",l+1,l) <= 0) goto err; in OCSP_REQUEST_print()
152 goto err; in OCSP_REQUEST_print()
155 if (BIO_write(bp,"\n Requestor List:\n",21) <= 0) goto err; in OCSP_REQUEST_print()
164 goto err; in OCSP_REQUEST_print()
168 goto err; in OCSP_REQUEST_print()
179 err: in OCSP_REQUEST_print()
197 if (BIO_puts(bp,"OCSP Response Data:\n") <= 0) goto err; in OCSP_RESPONSE_print()
200 OCSP_response_status_str(l), l) <= 0) goto err; in OCSP_RESPONSE_print()
203 goto err; in OCSP_RESPONSE_print()
[all …]
Docsp_ext.c276 if ((i=i2d(data,NULL)) <= 0) goto err; in ASN1_STRING_encode()
278 goto err; in ASN1_STRING_encode()
279 if (i2d(data, &p) <= 0) goto err; in ASN1_STRING_encode()
284 V_ASN1_UNIVERSAL,IS_SEQUENCE))<=0) goto err; in ASN1_STRING_encode()
286 goto err; in ASN1_STRING_encode()
288 V_ASN1_UNIVERSAL,IS_SEQUENCE)<=0) goto err; in ASN1_STRING_encode()
293 goto err; in ASN1_STRING_encode()
295 if (!s && !(s = ASN1_STRING_new())) goto err; in ASN1_STRING_encode()
296 if (!(ASN1_STRING_set(s, b, i))) goto err; in ASN1_STRING_encode()
299 err: in ASN1_STRING_encode()
[all …]
/mirbsd/src/lib/libssl/src/crypto/des/
Ddestest.c336 int i,j,err=0; in main() local
359 err=1; in main()
364 err=1; in main()
369 err=1; in main()
403 err=1; in main()
422 err=1; in main()
428 err=1; in main()
450 err=1; in main()
456 err=1; in main()
465 err=1; in main()
[all …]
/mirbsd/src/lib/libssl/src/crypto/dsa/
Ddsa_gen.c115 if ((ctx=BN_CTX_new()) == NULL) goto err; in DSA_generate_parameters()
116 if ((ctx2=BN_CTX_new()) == NULL) goto err; in DSA_generate_parameters()
117 if ((ctx3=BN_CTX_new()) == NULL) goto err; in DSA_generate_parameters()
118 if ((ret=DSA_new()) == NULL) goto err; in DSA_generate_parameters()
120 if ((mont=BN_MONT_CTX_new()) == NULL) goto err; in DSA_generate_parameters()
131 if (test == NULL) goto err; in DSA_generate_parameters()
133 if (!BN_lshift(test,BN_value_one(),bits-1)) goto err; in DSA_generate_parameters()
172 if (!BN_bin2bn(md,SHA_DIGEST_LENGTH,q)) goto err; in DSA_generate_parameters()
179 goto err; in DSA_generate_parameters()
201 if (!BN_zero(W)) goto err; in DSA_generate_parameters()
[all …]
Ddsa_ossl.c115 goto err; in dsa_do_sign()
119 if (s == NULL) goto err; in dsa_do_sign()
125 goto err; in dsa_do_sign()
129 if (ctx == NULL) goto err; in dsa_do_sign()
133 if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err; in dsa_do_sign()
143 if (BN_bin2bn(dgst,dlen,&m) == NULL) goto err; in dsa_do_sign()
146 if (!BN_mod_mul(&xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */ in dsa_do_sign()
147 if (!BN_add(s, &xr, &m)) goto err; /* s = m + xr */ in dsa_do_sign()
150 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err; in dsa_do_sign()
153 if (ret == NULL) goto err; in dsa_do_sign()
[all …]
/mirbsd/src/lib/libssl/src/crypto/rand/
Drandtest.c71 int i,j,k,s,sign,nsign,err=0; in main() local
82 err++; in main()
83 goto err; in main()
129 err++; in main()
142 err++; in main()
152 err++; in main()
163 err++; in main()
169 err++; in main()
175 err++; in main()
181 err++; in main()
[all …]
/mirbsd/src/lib/libssl/src/apps/
Dca.c538 goto err; in MAIN()
576 goto err; in MAIN()
585 goto err; in MAIN()
598 goto err; in MAIN()
629 goto err; in MAIN()
680 goto err; in MAIN()
690 goto err; in MAIN()
693 if (db == NULL) goto err; in MAIN()
695 if (!index_index(db)) goto err; in MAIN()
700 goto err; in MAIN()
[all …]
/mirbsd/src/gnu/usr.bin/perl/lib/Test/Simple/t/
Dis_deeply_fail.t17 my($out, $err) = Test::Simple::Catch::caught();
65 is( $err, <<ERR, ' right diagnostic' );
76 like( $err, <<ERR, ' right diagnostic' );
88 is( $err, <<ERR, ' right diagnostic' );
100 is( $err, <<ERR, ' right diagnostic' );
112 is( $err, <<ERR, ' right diagnostic' );
123 is( $err, <<ERR, ' right diagnostic' );
134 is( $err, <<ERR, ' right diagnostic' );
145 is( $err, <<ERR, ' right diagnostic' );
157 like( $err, <<ERR, ' right diagnostic' );
[all …]
/mirbsd/src/lib/libssl/src/crypto/dh/
Ddh_gen.c101 if (ret == NULL) goto err; in DH_generate_parameters()
103 if (ctx == NULL) goto err; in DH_generate_parameters()
107 if (t1 == NULL || t2 == NULL) goto err; in DH_generate_parameters()
112 goto err; in DH_generate_parameters()
116 if (!BN_set_word(t1,24)) goto err; in DH_generate_parameters()
117 if (!BN_set_word(t2,11)) goto err; in DH_generate_parameters()
123 if (!BN_set_word(t1,12)) goto err; in DH_generate_parameters()
124 if (!BN_set_word(t2,5)) goto err; in DH_generate_parameters()
130 if (!BN_set_word(t1,10)) goto err; in DH_generate_parameters()
131 if (!BN_set_word(t2,3)) goto err; in DH_generate_parameters()
[all …]
/mirbsd/src/lib/libcitrus_iconv/libc/citrus/
Dcitrus_ctype_template.h199 int err = 0; in _FUNCNAME() local
210 err = _FUNCNAME(mbrtowc_priv)(ei, pwc, (const char **)&s, n, psenc, &nr); in _FUNCNAME()
211 if (err) { in _FUNCNAME()
213 return (err); in _FUNCNAME()
233 int err, cnt; in _FUNCNAME() local
248 err = cnt = 0; in _FUNCNAME()
252 err = _FUNCNAME(mbrtowc_priv)(ei, pwcs, &s0, mbcurmax, in _FUNCNAME()
255 err = EILSEQ; in _FUNCNAME()
256 if (err) { in _FUNCNAME()
282 return err; in _FUNCNAME()
[all …]
/mirbsd/src/sbin/isakmpd/
Dmonitor.c162 int err, cmd; in monitor_ui_init() local
167 must_read(&err, sizeof err); in monitor_ui_init()
168 if (err != 0) in monitor_ui_init()
183 int err, cmd; in monitor_pf_key_v2_open() local
188 must_read(&err, sizeof err); in monitor_pf_key_v2_open()
189 if (err < 0) { in monitor_pf_key_v2_open()
208 int fd, err, cmd; in monitor_open() local
227 must_read(&err, sizeof err); in monitor_open()
228 if (err != 0) { in monitor_open()
229 errno = err; in monitor_open()
[all …]
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dregexec.c116 static re_dfastate_t *find_recover_state (reg_errcode_t *err,
118 static re_dfastate_t *transit_state (reg_errcode_t *err,
121 static re_dfastate_t *merge_state_with_log (reg_errcode_t *err,
128 static re_dfastate_t *transit_state_sb (reg_errcode_t *err,
203 reg_errcode_t err; in regexec() local
225 err = re_search_internal (preg, string, length, start, length, in regexec()
228 err = re_search_internal (preg, string, length, start, length, in regexec()
231 return err != REG_NOERROR; in regexec()
613 reg_errcode_t err; in re_search_internal() local
669 err = re_string_allocate (&mctx.input, string, length, dfa->nodes_len + 1, in re_search_internal()
[all …]

12345678910>>...54