Lines Matching refs:res

69     apr_status_t res;
72 res = apr_crypto_get_block_key_types(&ciphers, f);
73 if (APR_SUCCESS != res) {
74 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01823)
77 return res;
107 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01824)
125 apr_status_t res;
149 res = crypt_init(r, f, &cipher, dconf);
150 if (res != APR_SUCCESS) {
151 return res;
156 res = apr_crypto_passphrase(&key, &ivSize, passphrase,
160 if (APR_STATUS_IS_ENOKEY(res)) {
161 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01825)
164 if (APR_STATUS_IS_EPADDING(res)) {
165 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01826)
168 if (APR_STATUS_IS_EKEYTYPE(res)) {
169 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01827)
172 if (APR_SUCCESS != res) {
173 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01828)
175 return res;
178 res = apr_crypto_block_encrypt_init(&block, &iv, key, &blockSize, r->pool);
179 if (APR_SUCCESS != res) {
180 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01829)
182 return res;
186 res = apr_crypto_block_encrypt(&encrypt, &encryptlen, (unsigned char *)in,
188 if (APR_SUCCESS != res) {
189 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01830)
191 return res;
193 res = apr_crypto_block_encrypt_finish(encrypt + encryptlen, &tlen, block);
194 if (APR_SUCCESS != res) {
195 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01831)
197 return res;
215 return res;
227 apr_status_t res;
244 res = crypt_init(r, f, &cipher, dconf);
245 if (res != APR_SUCCESS) {
246 return res;
256 res = apr_crypto_passphrase(&key, &ivSize, passphrase,
260 if (APR_STATUS_IS_ENOKEY(res)) {
261 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01832)
265 else if (APR_STATUS_IS_EPADDING(res)) {
266 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01833)
270 else if (APR_STATUS_IS_EKEYTYPE(res)) {
271 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01834)
275 else if (APR_SUCCESS != res) {
276 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01835)
285 res = APR_ECRYPT;
293 res = apr_crypto_block_decrypt_init(&block, &blockSize, (unsigned char *)slider, key,
295 if (APR_SUCCESS != res) {
296 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01837)
306 res = apr_crypto_block_decrypt(&decrypted, &decryptedlen,
308 if (res) {
309 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01838)
315 res = apr_crypto_block_decrypt_finish(decrypted + decryptedlen, &tlen, block);
316 if (APR_SUCCESS != res) {
317 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01839)
327 if (APR_SUCCESS != res) {
328 ap_log_rerror(APLOG_MARK, APLOG_INFO, res, r, APLOGNO(01840)
332 return res;
346 apr_status_t res;
353 res = encrypt_string(r, f, dconf, z->encoded, &encoded);
354 if (res != OK) {
355 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, res, r, APLOGNO(01841)
357 return res;
377 apr_status_t res;
385 res = decrypt_string(r, f, dconf, z->encoded, &encoded);
386 if (res != APR_SUCCESS) {
387 ap_log_rerror(APLOG_MARK, APLOG_ERR, res, r, APLOGNO(01842)
389 return res;