- 時間撮記:
- 2022-3-3 下午07:17:34 (3 年 以前)
- svn:sync-xref-src-repo-rev:
- 150325
- 位置:
- trunk/src/libs/openssl-3.0.1
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/libs/openssl-3.0.1
- 屬性 svn:mergeinfo
-
old new 12 12 /vendor/openssl/1.1.1c:131722-131725 13 13 /vendor/openssl/1.1.1k:145841-145843 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322
-
- 屬性 svn:mergeinfo
-
trunk/src/libs/openssl-3.0.1/crypto/bio/bss_bio.c
r91772 r94082 1 1 /* 2 * Copyright 1999-20 17The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 * Licensed under the OpenSSL license(the "License"). You may not use4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 5 * this file except in compliance with the License. You can obtain a copy 6 6 * in the file LICENSE in the source distribution or at … … 39 39 BIO_TYPE_BIO, 40 40 "BIO pair", 41 /* TODO: Convert to new style write function */42 41 bwrite_conv, 43 42 bio_write, 44 /* TODO: Convert to new style read function */45 43 bread_conv, 46 44 bio_read, … … 287 285 if (b->closed) { 288 286 /* we already closed */ 289 BIOerr(BIO_F_BIO_WRITE, BIO_R_BROKEN_PIPE);287 ERR_raise(ERR_LIB_BIO, BIO_R_BROKEN_PIPE); 290 288 return -1; 291 289 } … … 363 361 b->request = 0; 364 362 if (b->closed) { 365 BIOerr(BIO_F_BIO_NWRITE0, BIO_R_BROKEN_PIPE);363 ERR_raise(ERR_LIB_BIO, BIO_R_BROKEN_PIPE); 366 364 return -1; 367 365 } … … 428 426 case BIO_C_SET_WRITE_BUF_SIZE: 429 427 if (b->peer) { 430 BIOerr(BIO_F_BIO_CTRL, BIO_R_IN_USE);428 ERR_raise(ERR_LIB_BIO, BIO_R_IN_USE); 431 429 ret = 0; 432 430 } else if (num == 0) { 433 BIOerr(BIO_F_BIO_CTRL, BIO_R_INVALID_ARGUMENT);431 ERR_raise(ERR_LIB_BIO, BIO_R_INVALID_ARGUMENT); 434 432 ret = 0; 435 433 } else { … … 617 615 618 616 if (b1->peer != NULL || b2->peer != NULL) { 619 BIOerr(BIO_F_BIO_MAKE_PAIR, BIO_R_IN_USE);617 ERR_raise(ERR_LIB_BIO, BIO_R_IN_USE); 620 618 return 0; 621 619 } … … 624 622 b1->buf = OPENSSL_malloc(b1->size); 625 623 if (b1->buf == NULL) { 626 BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE);624 ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE); 627 625 return 0; 628 626 } … … 634 632 b2->buf = OPENSSL_malloc(b2->size); 635 633 if (b2->buf == NULL) { 636 BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE);634 ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE); 637 635 return 0; 638 636 } … … 751 749 752 750 if (!bio->init) { 753 BIOerr(BIO_F_BIO_NREAD0, BIO_R_UNINITIALIZED);751 ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED); 754 752 return -2; 755 753 } … … 767 765 768 766 if (!bio->init) { 769 BIOerr(BIO_F_BIO_NREAD, BIO_R_UNINITIALIZED);767 ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED); 770 768 return -2; 771 769 } … … 782 780 783 781 if (!bio->init) { 784 BIOerr(BIO_F_BIO_NWRITE0, BIO_R_UNINITIALIZED);782 ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED); 785 783 return -2; 786 784 } … … 798 796 799 797 if (!bio->init) { 800 BIOerr(BIO_F_BIO_NWRITE, BIO_R_UNINITIALIZED);798 ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED); 801 799 return -2; 802 800 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器