diff options
| author | djm <> | 2006-06-27 05:05:42 +0000 | 
|---|---|---|
| committer | djm <> | 2006-06-27 05:05:42 +0000 | 
| commit | f6198d4d0ab97685dc56be2d48715ed39fcc74b9 (patch) | |
| tree | 6e28360095ed5ba5ef1760a419c43eef4ef6946b /src/lib/libcrypto/ui/ui_err.c | |
| parent | 0ff0f9d99c40072de315264b0f602bd639e7f662 (diff) | |
| download | openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.tar.gz openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.tar.bz2 openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.zip | |
import of openssl-0.9.7j
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_err.c | 48 | 
1 files changed, 26 insertions, 22 deletions
| diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c index 39a62ae737..d983cdd66f 100644 --- a/src/lib/libcrypto/ui/ui_err.c +++ b/src/lib/libcrypto/ui/ui_err.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* crypto/ui/ui_err.c */ | 1 | /* crypto/ui/ui_err.c */ | 
| 2 | /* ==================================================================== | 2 | /* ==================================================================== | 
| 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | 
| 4 | * | 4 | * | 
| 5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without | 
| 6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions | 
| @@ -64,32 +64,36 @@ | |||
| 64 | 64 | ||
| 65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ | 
| 66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR | 
| 67 | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0) | ||
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason) | ||
| 70 | |||
| 67 | static ERR_STRING_DATA UI_str_functs[]= | 71 | static ERR_STRING_DATA UI_str_functs[]= | 
| 68 | { | 72 | { | 
| 69 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_BOOLEAN,0), "GENERAL_ALLOCATE_BOOLEAN"}, | 73 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, | 
| 70 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_PROMPT,0), "GENERAL_ALLOCATE_PROMPT"}, | 74 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, | 
| 71 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_STRING,0), "GENERAL_ALLOCATE_STRING"}, | 75 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, | 
| 72 | {ERR_PACK(0,UI_F_UI_CTRL,0), "UI_ctrl"}, | 76 | {ERR_FUNC(UI_F_UI_CTRL), "UI_ctrl"}, | 
| 73 | {ERR_PACK(0,UI_F_UI_DUP_ERROR_STRING,0), "UI_dup_error_string"}, | 77 | {ERR_FUNC(UI_F_UI_DUP_ERROR_STRING), "UI_dup_error_string"}, | 
| 74 | {ERR_PACK(0,UI_F_UI_DUP_INFO_STRING,0), "UI_dup_info_string"}, | 78 | {ERR_FUNC(UI_F_UI_DUP_INFO_STRING), "UI_dup_info_string"}, | 
| 75 | {ERR_PACK(0,UI_F_UI_DUP_INPUT_BOOLEAN,0), "UI_dup_input_boolean"}, | 79 | {ERR_FUNC(UI_F_UI_DUP_INPUT_BOOLEAN), "UI_dup_input_boolean"}, | 
| 76 | {ERR_PACK(0,UI_F_UI_DUP_INPUT_STRING,0), "UI_dup_input_string"}, | 80 | {ERR_FUNC(UI_F_UI_DUP_INPUT_STRING), "UI_dup_input_string"}, | 
| 77 | {ERR_PACK(0,UI_F_UI_DUP_VERIFY_STRING,0), "UI_dup_verify_string"}, | 81 | {ERR_FUNC(UI_F_UI_DUP_VERIFY_STRING), "UI_dup_verify_string"}, | 
| 78 | {ERR_PACK(0,UI_F_UI_GET0_RESULT,0), "UI_get0_result"}, | 82 | {ERR_FUNC(UI_F_UI_GET0_RESULT), "UI_get0_result"}, | 
| 79 | {ERR_PACK(0,UI_F_UI_NEW_METHOD,0), "UI_new_method"}, | 83 | {ERR_FUNC(UI_F_UI_NEW_METHOD), "UI_new_method"}, | 
| 80 | {ERR_PACK(0,UI_F_UI_SET_RESULT,0), "UI_set_result"}, | 84 | {ERR_FUNC(UI_F_UI_SET_RESULT), "UI_set_result"}, | 
| 81 | {0,NULL} | 85 | {0,NULL} | 
| 82 | }; | 86 | }; | 
| 83 | 87 | ||
| 84 | static ERR_STRING_DATA UI_str_reasons[]= | 88 | static ERR_STRING_DATA UI_str_reasons[]= | 
| 85 | { | 89 | { | 
| 86 | {UI_R_COMMON_OK_AND_CANCEL_CHARACTERS ,"common ok and cancel characters"}, | 90 | {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS),"common ok and cancel characters"}, | 
| 87 | {UI_R_INDEX_TOO_LARGE ,"index too large"}, | 91 | {ERR_REASON(UI_R_INDEX_TOO_LARGE) ,"index too large"}, | 
| 88 | {UI_R_INDEX_TOO_SMALL ,"index too small"}, | 92 | {ERR_REASON(UI_R_INDEX_TOO_SMALL) ,"index too small"}, | 
| 89 | {UI_R_NO_RESULT_BUFFER ,"no result buffer"}, | 93 | {ERR_REASON(UI_R_NO_RESULT_BUFFER) ,"no result buffer"}, | 
| 90 | {UI_R_RESULT_TOO_LARGE ,"result too large"}, | 94 | {ERR_REASON(UI_R_RESULT_TOO_LARGE) ,"result too large"}, | 
| 91 | {UI_R_RESULT_TOO_SMALL ,"result too small"}, | 95 | {ERR_REASON(UI_R_RESULT_TOO_SMALL) ,"result too small"}, | 
| 92 | {UI_R_UNKNOWN_CONTROL_COMMAND ,"unknown control command"}, | 96 | {ERR_REASON(UI_R_UNKNOWN_CONTROL_COMMAND),"unknown control command"}, | 
| 93 | {0,NULL} | 97 | {0,NULL} | 
| 94 | }; | 98 | }; | 
| 95 | 99 | ||
| @@ -103,8 +107,8 @@ void ERR_load_UI_strings(void) | |||
| 103 | { | 107 | { | 
| 104 | init=0; | 108 | init=0; | 
| 105 | #ifndef OPENSSL_NO_ERR | 109 | #ifndef OPENSSL_NO_ERR | 
| 106 | ERR_load_strings(ERR_LIB_UI,UI_str_functs); | 110 | ERR_load_strings(0,UI_str_functs); | 
| 107 | ERR_load_strings(ERR_LIB_UI,UI_str_reasons); | 111 | ERR_load_strings(0,UI_str_reasons); | 
| 108 | #endif | 112 | #endif | 
| 109 | 113 | ||
| 110 | } | 114 | } | 
