Skip to main content

add-error-code

How to add a new error code in BoringSSL.

소스 정보

저장소
google/boringssl
최근 소스 활동
2026년 10월 20일 15:18
감지된 SKILL.md 언어
영어
스타
2,290
포크
913

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
add-error-code
description
How to add a new error code in BoringSSL.
# Adding a New Error Code To add a new error code, you only need to use it in the source code and then run the error generation script. The script will automatically define it in the header and update the error database. ## Steps 1. **Use the Error Code**: * Use the new error code directly in your C/C++ source file (e.g., `EVP_R_NEW_ERROR_CODE`). It must start with the correct library prefix (e.g., `EVP_R_`, `SSL_R_`). 2. **Run the Error Generator**: * Run [util/make_errors.go](../../../util/make_errors.go), passing the lowercase library name (e.g., `evp`, `ssl`). * Example: ```bash go run util/make_errors.go evp ``` * The script will automatically: * Find the new error code in the source. * Assign it a numeric value. * Add the `#define` to the appropriate header in [include/openssl](../../../include/openssl). * Update the `.errordata` file in [crypto/err](../../../crypto/err).
GitHub에서 보기