gap.h (64e2b019f2fddd9f3256ca185360838135765bd5) gap.h (62daa4413793ac9b1b00945388a2ed4faeb48481)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 502 unchanged lines hidden (view full) ---

511bool gap_secure_connections_active(void);
512
513/**
514 * @brief If set, BTstack will confirm a numeric comparison and enter '000000' if requested.
515 */
516void gap_ssp_set_auto_accept(int auto_accept);
517
518/**
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 502 unchanged lines hidden (view full) ---

511bool gap_secure_connections_active(void);
512
513/**
514 * @brief If set, BTstack will confirm a numeric comparison and enter '000000' if requested.
515 */
516void gap_ssp_set_auto_accept(int auto_accept);
517
518/**
519 * @brief Set required encryption key size for GAP Levels 1-3 on ccassic connections. Default: 16 bytes
520 * @param encryption_key_size in bytes. Valid 7..16
519 * @brief Set required encryption key size for GAP Levels 1-3 on classic connections.
520 * @note If you need to reduce the required encryption key size, please consider enabling
521 * ENABLE_MUTUAL_AUTHENTICATION_FOR_LEGACY_SECURE_CONNECTIONS to prevent BIAS attacks.
522 * However, the re-authentication for Legacy Secure Connections can cause a link loss
523 * in some Controller combinations.
524 * @param encryption_key_size in bytes. Valid 7..16, default: 16
521 */
522void gap_set_required_encryption_key_size(uint8_t encryption_key_size);
523
524/**
525 * @brief Start dedicated bonding with device. Disconnect after bonding.
526 * @param device
527 * @param request MITM protection
528 * @return error, if max num acl connections active

--- 932 unchanged lines hidden ---
525 */
526void gap_set_required_encryption_key_size(uint8_t encryption_key_size);
527
528/**
529 * @brief Start dedicated bonding with device. Disconnect after bonding.
530 * @param device
531 * @param request MITM protection
532 * @return error, if max num acl connections active

--- 932 unchanged lines hidden ---