| 1 |
/** |
| 2 |
* FreeRDP: A Remote Desktop Protocol Implementation |
| 3 |
* ASN1 routines for RDPEAR |
| 4 |
* |
| 5 |
* Copyright 2024 David Fort <[email protected]> |
| 6 |
* |
| 7 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 |
* you may not use this file except in compliance with the License. |
| 9 |
* You may obtain a copy of the License at |
| 10 |
* |
| 11 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
* |
| 13 |
* Unless required by applicable law or agreed to in writing, software |
| 14 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 15 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 |
* See the License for the specific language governing permissions and |
| 17 |
* limitations under the License. |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef RPDEAR_RDPEAR_ASN1_H__ |
| 21 |
#define RPDEAR_RDPEAR_ASN1_H__ |
| 22 |
|
| 23 |
#include <krb5.h> |
| 24 |
|
| 25 |
#include <winpr/stream.h> |
| 26 |
#include <freerdp/api.h> |
| 27 |
|
| 28 |
WINPR_ATTR_MALLOC(Stream_Free, 1) |
| 29 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL wStream* rdpear_enc_Checksum(UINT32 cksumtype, |
| 30 |
krb5_checksum* csum); |
| 31 |
|
| 32 |
WINPR_ATTR_MALLOC(Stream_Free, 1) |
| 33 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL wStream* rdpear_enc_EncryptedData(UINT32 encType, |
| 34 |
krb5_data* payload); |
| 35 |
|
| 36 |
#endif /* RPDEAR_RDPEAR_ASN1_H__ */ |