| // Copyright 2026 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // https://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| |
| #ifndef THIRD_PARTY_CREDENTIO_CRYPTO_DEFAULT_CMS_CMS_ERROR_CODE_H_ |
| #define THIRD_PARTY_CREDENTIO_CRYPTO_DEFAULT_CMS_CMS_ERROR_CODE_H_ |
| |
| namespace credentio_cms { |
| |
| enum class ErrorCode { |
| OK = 0, |
| // The ASN.1 encoding is not DER or the limited BER subset supported. |
| ASN1_PARSING_ERROR = 1, |
| // This means that the S/MIME part contains an unsupported encoding or |
| // feature. |
| UNSUPPORTED = 2, |
| // Set when invalid parameters are passed to the API, for example an |
| // unexpected null pointer. |
| INVALID_PARAMETER = 3, |
| }; |
| |
| } // namespace credentio_cms |
| |
| #endif // THIRD_PARTY_CREDENTIO_CRYPTO_DEFAULT_CMS_CMS_ERROR_CODE_H_ |