Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
Loading...
Searching...
No Matches
protection_engine_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
34#ifndef API_MIP_PROTECTION_PROTECTION_ENGINE_CC_H_
35#define API_MIP_PROTECTION_PROTECTION_ENGINE_CC_H_
36
37#include <stdint.h>
38
44#include "mip_cc/error_cc.h"
50#include "mip_cc/result_cc.h"
52
55
61MIP_CC_API(void) MIP_CC_ReleaseProtectionEngine(mip_cc_protection_engine engine);
62
74MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_CreateProtectionHandlerForPublishing(
77 const void* context,
80
92MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_CreateProtectionHandlerForConsumption(
95 const void* context,
98
108MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetEngineIdSize(
110 int64_t* idSize,
112
127MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetEngineId(
129 char* idBuffer,
130 const int64_t idBufferSize,
131 int64_t* actualIdSize,
133
147MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetTemplatesSize(
149 const void* context,
152
169MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetTemplates(
171 const void* context,
173 const int64_t templateBufferSize,
176
193MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetRightsForLabelId(
195 const void* context,
196 const char* documentId,
197 const char* labelId,
198 const char* ownerEmail,
202
220MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetLicenseInfoForLabelId(
222 const void* context,
223 const char* documentId,
224 const char* labelId,
225 const char* ownerEmail,
226 const char* delegatedUserEmail,
229
239MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetClientDataSize(
243
258MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetClientData(
261 const int64_t clientDataBufferSize,
264
278MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngine_GetDelegationLicenses(
281 const void* context,
284
297MIP_CC_DEPRECATED_API(mip_cc_result) MIP_CC_CreateProtectionEngineSettingsWithIdentity(
299 const char* clientData,
300 const char* locale,
303
321MIP_CC_DEPRECATED_API(mip_cc_result) MIP_CC_CreateProtectionEngineSettingsWithEngineId(
322 const char* engineId,
324 const char* clientData,
325 const char* locale,
328
341MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionEngineSettingsWithIdentityAndAuthCallback(
343 const mip_cc_auth_callback authCallback,
344 const char* clientData,
345 const char* locale,
348
366MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionEngineSettingsWithEngineIdAndAuthCallback(
367 const char* engineId,
369 const mip_cc_auth_callback authCallback,
370 const char* clientData,
371 const char* locale,
374
384MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetClientData(
386 const char* clientData,
388
398MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetCustomSettings(
402
412MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetSessionId(
414 const char* sessionId,
416
429MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetCloud(
433
445MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetCloudEndpointBaseUrl(
449
459MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetUnderlyingApplicationId(
463
473MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetAllowCloudServiceOnly(
477
490MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_SetTemplateRefreshArgs(
495
505MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_AddRmsCapability(
507 const char* capability,
509
520MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_RemoveRmsCapability(
522 const char* capability,
523 bool* removed,
525
538MIP_CC_API(mip_cc_result) MIP_CC_ProtectionEngineSettings_GetRmsCapability(
542
548MIP_CC_API(void) MIP_CC_ReleaseProtectionEngineSettings(mip_cc_protection_engine_settings engineSettings);
549
550#endif // API_MIP_PROTECTION_PROTECTION_ENGINE_CC_H_
ApplicationInfo definition.
Defines auth callback functions.
A file Containing the common types used by the upe, file and protection modules.
mip_cc_cloud
Definition common_types_cc.h:112
Defines consent callback functions.
Contains C API definitions for common string dictionary.
Error definition and functions.
Export/import and other macros for C API.
const void mip_cc_template_descriptor const int64_t int64_t * actualTemplatesSize
Definition protection_engine_cc.h:174
const mip_cc_protection_handler_publishing_settings const void mip_cc_protection_handler mip_cc_error * errorInfo
Definition protection_engine_cc.h:79
const mip_cc_delegation_license_settings const void mip_cc_delegation_licenses * delegationLicenses
Definition protection_engine_cc.h:282
const char bool * removed
Definition protection_engine_cc.h:523
int templateRefreshIntervalHours
Definition protection_engine_cc.h:492
const mip_cc_protection_handler_publishing_settings const void mip_cc_protection_handler * handler
Definition protection_engine_cc.h:78
const void const char const char const char const char * delegatedUserEmail
Definition protection_engine_cc.h:199
const char const char * locale
Definition protection_engine_cc.h:300
const void const char const char const char const char mip_cc_string_list * rights
Definition protection_engine_cc.h:200
MIP_CC_API(void) MIP_CC_ReleaseProtectionEngine(mip_cc_protection_engine engine)
Release resources associated with a protection engine.
const mip_cc_auth_callback authCallback
Definition protection_engine_cc.h:343
const mip_cc_identity * identity
Definition protection_engine_cc.h:323
const void mip_cc_template_descriptor * templateDescriptors
Definition protection_engine_cc.h:172
const char * sessionId
Definition protection_engine_cc.h:414
char const int64_t int64_t * actualClientDataSize
Definition protection_engine_cc.h:262
const mip_cc_protection_handler_publishing_settings settings
Definition protection_engine_cc.h:76
const char * clientData
Definition protection_engine_cc.h:299
MIP_CC_DEPRECATED_API(mip_cc_result) MIP_CC_CreateProtectionEngineSettingsWithIdentity(const mip_cc_identity *identity
Create a settings object used to create a brand new protection engine.
char * clientDataBuffer
Definition protection_engine_cc.h:260
const mip_cc_cloud cloud
Definition protection_engine_cc.h:431
char const int64_t clientDataBufferSize
Definition protection_engine_cc.h:261
int64_t * clientDataSize
Definition protection_engine_cc.h:241
bool allowCloudServiceOnly
Definition protection_engine_cc.h:475
int64_t * idSize
Definition protection_engine_cc.h:110
const mip_cc_dictionary customSettings
Definition protection_engine_cc.h:400
mip_cc_handle * mip_cc_protection_engine_settings
Definition protection_engine_cc.h:54
mip_cc_string_list * capabilities
Definition protection_engine_cc.h:540
const void const char const char * labelId
Definition protection_engine_cc.h:197
const void const char const char const char * ownerEmail
Definition protection_engine_cc.h:198
const void mip_cc_template_descriptor const int64_t templateBufferSize
Definition protection_engine_cc.h:173
const char * underlyingApplicationId
Definition protection_engine_cc.h:461
const mip_cc_protection_handler_publishing_settings const void * context
Definition protection_engine_cc.h:77
const char * capability
Definition protection_engine_cc.h:507
const char * cloudEndpointBaseUrl
Definition protection_engine_cc.h:447
const void const char const char const char const char mip_cc_license_info * licenseInfo
Definition protection_engine_cc.h:227
int int templateBatchingSize
Definition protection_engine_cc.h:493
char const int64_t idBufferSize
Definition protection_engine_cc.h:130
const void int64_t * templatesSize
Definition protection_engine_cc.h:150
char const int64_t int64_t * actualIdSize
Definition protection_engine_cc.h:131
const void const char * documentId
Definition protection_engine_cc.h:196
mip_cc_handle * mip_cc_protection_engine
Definition protection_engine_cc.h:53
const char const char mip_cc_protection_engine_settings * engineSettings
Definition protection_engine_cc.h:301
char * idBuffer
Definition protection_engine_cc.h:129
Defines C-Style ProtectionHandler interface.
const mip_cc_protection_engine_settings mip_cc_protection_engine * engine
Definition protection_profile_cc.h:67
Defines success/error result codes.
mip_cc_result
API success/failure result.
Definition result_cc.h:44
Contains C API definitions for common string list.
Error information.
Definition error_cc.h:79
Opaque handle to MIP object.
Definition common_types_cc.h:44
A struct that contains user identification info.
Definition identity_cc.h:42
Defines C-Style TemplateDescriptor functions.