Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
result_cc.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) Microsoft Corporation.
4 * All rights reserved.
5 *
6 * This code is licensed under the MIT License.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files(the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions :
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27
28/**
29 * @brief Defines success/error result codes
30 *
31 * @file result_cc.h
32 */
33
34#ifndef API_MIP_RESULT_CC_H_
35#define API_MIP_RESULT_CC_H_
36
37#include <stdint.h>
38
40
41/**
42 * @brief API success/failure result
43 */
44typedef enum {
46
47 // MIP C API errors
48 MIP_RESULT_ERROR_UNKNOWN = 1, /**< Unknown error */
49 MIP_RESULT_ERROR_INSUFFICIENT_BUFFER = 2, /**< Buffer provided by application is too small */
50
51 // MIP C++ exceptions
52 MIP_RESULT_ERROR_BAD_INPUT = 3, /**< Application passed bad input */
53 MIP_RESULT_ERROR_FILE_IO_ERROR = 4, /**< General file i/o error */
54 MIP_RESULT_ERROR_NETWORK = 5, /**< General network error (e.g. unreachable service) */
55 MIP_RESULT_ERROR_INTERNAL = 6, /**< Unexpected internal error */
56 MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED = 7, /**< Justification should be provided to complete the action on the file. */
57 MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION = 8, /**< Opeation is not supported */
58 MIP_RESULT_ERROR_PRIVILEGED_REQUIRED = 9, /**< Cannot override privileged label when with standard method */
59 MIP_RESULT_ERROR_ACCESS_DENIED = 10, /**< User does not have rights to access the service */
60 MIP_RESULT_ERROR_CONSENT_DENIED = 11, /**< An operation that required consent from the user was not granted consent */
61 MIP_RESULT_ERROR_NO_PERMISSIONS = 12, /**< The user could not get access to the content (e.g. no permissions, content revoked) */
62 MIP_RESULT_ERROR_NO_AUTH_TOKEN = 13, /**< The user could not get access to the content due to an empty auth token */
63 MIP_RESULT_ERROR_SERVICE_DISABLED = 14, /**< The user could not get access to the content due to the service being disabled */
64 MIP_RESULT_ERROR_PROXY_AUTH = 15, /**< Proxy authentication failed */
65 MIP_RESULT_ERROR_NO_POLICY = 16, /**< No policy is configured for user/tenant */
66 MIP_RESULT_ERROR_OPERATION_CANCELLED = 17, /**< Operation cancelled */
67 MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED = 18, /**< Ad-hoc protection should be set to complete the action on the file */
68 MIP_RESULT_ERROR_DEPRECATED_API = 19, /**< Caller invoked a deprecated API */
69 MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND = 20, /**< Template ID is not recognized */
70 MIP_RESULT_ERROR_LABEL_NOT_FOUND = 21, /**< Label ID is not recognized */
71 MIP_RESULT_ERROR_LABEL_DISABLED = 22, /**< Label is disabled or inactive */
72 MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED = 23, /**< The double key feature has not been enabled */
73 MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED = 24, /**< License not registered for tracking and revocation */
74 MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED = 25, /**< Content format is not supported */
75 MIP_RESULT_ERROR_TEMPLATE_ARCHIVED = 26, /**< Template has been archived and is unavailable for protection */
76 MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE = 27, /**< Bring your own encryption key needed and unavailable */
78
79#endif // API_MIP_RESULT_CC_H_
Export/import and other macros for C API.
mip_cc_result
API success/failure result.
Definition result_cc.h:44
@ MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED
The double key feature has not been enabled.
Definition result_cc.h:72
@ MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED
License not registered for tracking and revocation.
Definition result_cc.h:73
@ MIP_RESULT_ERROR_PRIVILEGED_REQUIRED
Cannot override privileged label when with standard method.
Definition result_cc.h:58
@ MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED
Content format is not supported.
Definition result_cc.h:74
@ MIP_RESULT_ERROR_UNKNOWN
Unknown error.
Definition result_cc.h:48
@ MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION
Opeation is not supported.
Definition result_cc.h:57
@ MIP_RESULT_ERROR_CONSENT_DENIED
An operation that required consent from the user was not granted consent.
Definition result_cc.h:60
@ MIP_RESULT_ERROR_TEMPLATE_ARCHIVED
Template has been archived and is unavailable for protection.
Definition result_cc.h:75
@ MIP_RESULT_ERROR_SERVICE_DISABLED
The user could not get access to the content due to the service being disabled.
Definition result_cc.h:63
@ MIP_RESULT_SUCCESS
Definition result_cc.h:45
@ MIP_RESULT_ERROR_FILE_IO_ERROR
General file i/o error.
Definition result_cc.h:53
@ MIP_RESULT_ERROR_LABEL_NOT_FOUND
Label ID is not recognized.
Definition result_cc.h:70
@ MIP_RESULT_ERROR_PROXY_AUTH
Proxy authentication failed.
Definition result_cc.h:64
@ MIP_RESULT_ERROR_NETWORK
General network error (e.g.
Definition result_cc.h:54
@ MIP_RESULT_ERROR_NO_PERMISSIONS
The user could not get access to the content (e.g.
Definition result_cc.h:61
@ MIP_RESULT_ERROR_BAD_INPUT
Application passed bad input.
Definition result_cc.h:52
@ MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED
Justification should be provided to complete the action on the file.
Definition result_cc.h:56
@ MIP_RESULT_ERROR_DEPRECATED_API
Caller invoked a deprecated API.
Definition result_cc.h:68
@ MIP_RESULT_ERROR_INTERNAL
Unexpected internal error.
Definition result_cc.h:55
@ MIP_RESULT_ERROR_NO_POLICY
No policy is configured for user/tenant.
Definition result_cc.h:65
@ MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND
Template ID is not recognized.
Definition result_cc.h:69
@ MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED
Ad-hoc protection should be set to complete the action on the file.
Definition result_cc.h:67
@ MIP_RESULT_ERROR_LABEL_DISABLED
Label is disabled or inactive.
Definition result_cc.h:71
@ MIP_RESULT_ERROR_ACCESS_DENIED
User does not have rights to access the service.
Definition result_cc.h:59
@ MIP_RESULT_ERROR_INSUFFICIENT_BUFFER
Buffer provided by application is too small.
Definition result_cc.h:49
@ MIP_RESULT_ERROR_NO_AUTH_TOKEN
The user could not get access to the content due to an empty auth token.
Definition result_cc.h:62
@ MIP_RESULT_ERROR_OPERATION_CANCELLED
Operation cancelled.
Definition result_cc.h:66
@ MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE
Bring your own encryption key needed and unavailable.
Definition result_cc.h:76